{"type": "func", "start": 8441220, "end": 8441594, "name": "DS_Dictionary::loadRootSubDictFromCompressedFile", "pseudocode": "// \n// DS_Dictionary::loadRootSubDictFromCompressedFile from 0x80cd84 to 0x80cefa (374 bytes)\n// \n// 1 xrefs:\n// > GManager::tryLoadData @ 0x3d4050\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 12:01:33 +0000\n// \n\nint __fastcall DS_Dictionary::loadRootSubDictFromCompressedFile(DS_Dictionary *this, char *a2, int a3)\n{\n  int v4; // r2\n  int v7; // r3\n  _DWORD *v8; // r3\n  char *v9; // r1\n  int *v10; // r0\n  int v11; // r0\n  char *v12; // r1\n  unsigned __int8 *v13; // r5\n  char *v14; // r2\n  int v15; // r3\n  int v16; // r6\n  int v18; // r8\n  _DWORD v19[5]; // [sp+8h] [bp-54h] BYREF\n  int v20; // [sp+1Ch] [bp-40h] BYREF\n  int v21; // [sp+20h] [bp-3Ch] BYREF\n  int v22[2]; // [sp+24h] [bp-38h] BYREF\n  char *v23; // [sp+2Ch] [bp-30h]\n  char *v24[3]; // [sp+30h] [bp-2Ch] BYREF\n  _DWORD v25[3]; // [sp+3Ch] [bp-20h] BYREF\n  unsigned __int8 v26; // [sp+48h] [bp-14h] BYREF\n  char v27; // [sp+49h] [bp-13h] BYREF\n  int v28; // [sp+4Ch] [bp-10h]\n  int v29; // [sp+50h] [bp-Ch]\n\n  v4 = *((_DWORD *)this + 50);\n  while ( 1 )\n  {\n    v7 = *((_DWORD *)this + 51);\n    if ( v4 == v7 )\n      break;\n    *((_DWORD *)this + 51) = v7 - 4;\n  }\n  pugi::xml_node::xml_node((pugi::xml_node *)v25);\n  v8 = *((_DWORD **)this + 51);\n  if ( (unsigned int)v8 >= *((_DWORD *)this + 52) )\n  {\n    std::vector<pugi::xml_node>::__push_back_slow_path<pugi::xml_node>((int *)this + 50, v25);\n  }\n  else\n  {\n    if ( v8 )\n      *v8 = v25[0];\n    *((_DWORD *)this + 51) += 4;\n  }\n  v22[0] = 0;\n  v22[1] = 0;\n  v23 = nullptr;\n  std::string::__init(v22, &unk_B6B226, 0);\n  FileOperation::getFilePath((FileOperation *)v24);\n  std::string::append(v24, a2);\n  if ( ((int)v24[0] & 1) != 0 )\n    v9 = v24[2];\n  else\n    v9 = (char *)v24 + 1;\n  v10 = std::string::assign(v22, v9);\n  v20 = 0;\n  v11 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)v10);\n  if ( (v22[0] & 1) != 0 )\n    v12 = v23;\n  else\n    v12 = (char *)v22 + 1;\n  v13 = (unsigned __int8 *)(*(int (__fastcall **)(int, char *, __int16 *, int *))(*(_DWORD *)v11 + 16))(\n                             v11,\n                             v12,\n                             &a1i2r3e45s789g[3],\n                             &v20);\n  pugi::xml_parse_result::xml_parse_result((pugi::xml_parse_result *)v25);\n  if ( v13 )\n  {\n    cocos2d::ZipUtils::decompressString2((cocos2d::ZipUtils *)&v26, v13, a3, (const unsigned __int8 *)v20, 11);\n    if ( (v26 & 1) != 0 )\n    {\n      v14 = (char *)v29;\n      v15 = v28;\n    }\n    else\n    {\n      v15 = (int)v26 >> 1;\n      v14 = &v27;\n    }\n    pugi::xml_document::load_buffer((int)v19, this, (int)v14, v15, 116, 0);\n    v25[0] = v19[0];\n    v25[1] = v19[1];\n    v25[2] = v19[2];\n    std::string::~string((int)&v26);\n  }\n  v16 = pugi::xml_parse_result::operator bool(v25);\n  if ( v16 )\n  {\n    if ( v13 )\n    {\n      v18 = *((_DWORD *)this + 51);\n      v21 = pugi::xml_node::child(this, \"plist\");\n      *(_DWORD *)(v18 - 4) = pugi::xml_node::child((pugi::xml_node *)&v21, \"dict\");\n      operator delete[](v13);\n      DS_Dictionary::checkCompatibility(this);\n    }\n    else\n    {\n      v16 = 0;\n    }\n  }\n  else if ( v13 )\n  {\n    operator delete[](v13);\n  }\n  std::string::~string((int)v24);\n  std::string::~string((int)v22);\n  return v16;\n}", "assembly": "; \n; DS_Dictionary::loadRootSubDictFromCompressedFile from 0x80cd84 to 0x80cefa (374 bytes)\n; \n; 1 xrefs:\n; > GManager::tryLoadData @ 0x3d4050\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 12:01:33 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x80cd84\nMOV             R8, R2                                                 ; +0x4, 0x80cd88\nLDR             R7, =(__stack_chk_guard_ptr - 0x80CD98)                ; +0x6, 0x80cd8a\nSUB             SP, SP, #0x5C                                          ; +0x8, 0x80cd8c\nLDR.W           R2, [R0,#0xC8]                                         ; +0xa, 0x80cd8e\nMOV             R4, R0                                                 ; +0xe, 0x80cd92\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x80cd94\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x80cd96\nMOV             R5, R1                                                 ; +0x14, 0x80cd98\nLDR             R3, [R7]                                               ; +0x16, 0x80cd9a\nSTR             R3, [SP,#0x5C+var_8]                                   ; +0x18, 0x80cd9c\nLDR.W           R3, [R4,#0xCC]                                         ; +0x1a, 0x80cd9e\nCMP             R2, R3                                                 ; +0x1e, 0x80cda2\nBEQ             loc_80CDAE                                             ; +0x20, 0x80cda4\nSUBS            R3, #4                                                 ; +0x22, 0x80cda6\nSTR.W           R3, [R4,#0xCC]                                         ; +0x24, 0x80cda8\nB               loc_80CD9E                                             ; +0x28, 0x80cdac\nADD             R6, SP, #0x5C+var_20                                   ; +0x2a, 0x80cdae\nMOV             R0, R6; this                                           ; +0x2c, 0x80cdb0\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x2e, 0x80cdb2\nLDR.W           R3, [R4,#0xCC]                                         ; +0x32, 0x80cdb6\nLDR.W           R2, [R4,#0xD0]                                         ; +0x36, 0x80cdba\nCMP             R3, R2                                                 ; +0x3a, 0x80cdbe\nBCS             loc_80CDD4                                             ; +0x3c, 0x80cdc0\nCBZ             R3, loc_80CDC8                                         ; +0x3e, 0x80cdc2\nLDR             R2, [SP,#0x5C+var_20]                                  ; +0x40, 0x80cdc4\nSTR             R2, [R3]                                               ; +0x42, 0x80cdc6\nLDR.W           R3, [R4,#0xCC]                                         ; +0x44, 0x80cdc8\nADDS            R3, #4                                                 ; +0x48, 0x80cdcc\nSTR.W           R3, [R4,#0xCC]                                         ; +0x4a, 0x80cdce\nB               loc_80CDDE                                             ; +0x4e, 0x80cdd2\nADD.W           R0, R4, #0xC8                                          ; +0x50, 0x80cdd4\nMOV             R1, R6                                                 ; +0x54, 0x80cdd8\nBL              _ZNSt6__ndk16vectorIN4pugi8xml_nodeENS_9allocatorIS2_EEE21__push_back_slow_pathIS2_EEvOT_; std::vector<pugi::xml_node>::__push_back_slow_path<pugi::xml_node>(pugi::xml_node &&) ; +0x56, 0x80cdda\nADD.W           R9, SP, #0x5C+var_38                                   ; +0x5a, 0x80cdde\nLDR             R1, =(unk_B6B226 - 0x80CDEE)                           ; +0x5e, 0x80cde2\nADD.W           R10, SP, #0x5C+var_2C                                  ; +0x60, 0x80cde4\nMOVS            R2, #0                                                 ; +0x64, 0x80cde8\nADD             R1, PC; unk_B6B226                                     ; +0x66, 0x80cdea\nMOV             R0, R9                                                 ; +0x68, 0x80cdec\nSTR             R2, [SP,#0x5C+var_38]                                  ; +0x6a, 0x80cdee\nSTR             R2, [SP,#0x5C+var_34]                                  ; +0x6c, 0x80cdf0\nSTR             R2, [SP,#0x5C+var_30]                                  ; +0x6e, 0x80cdf2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x70, 0x80cdf4\nMOV             R0, R10; this                                          ; +0x74, 0x80cdf8\nBL              _ZN13FileOperation11getFilePathEv; FileOperation::getFilePath(void) ; +0x76, 0x80cdfa\nMOV             R1, R5; char *                                         ; +0x7a, 0x80cdfe\nMOV             R0, R10; int                                           ; +0x7c, 0x80ce00\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x7e, 0x80ce02\nLDRB.W          R3, [SP,#0x5C+var_2C]                                  ; +0x82, 0x80ce06\nLSLS            R0, R3, #0x1F                                          ; +0x86, 0x80ce0a\nMOV             R0, R9; int                                            ; +0x88, 0x80ce0c\nITE PL                                                                 ; +0x8a, 0x80ce0e\nADDPL.W         R1, SP, #0x5C+var_2B                                   ; +0x8c, 0x80ce10\nLDRMI           R1, [SP,#0x5C+var_24]; char *                          ; +0x90, 0x80ce14\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x92, 0x80ce16\nMOVS            R3, #0                                                 ; +0x96, 0x80ce1a\nSTR             R3, [SP,#0x5C+var_40]                                  ; +0x98, 0x80ce1c\nBL              _ZN7cocos2d11CCFileUtils15sharedFileUtilsEv; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x9a, 0x80ce1e\nLDR             R2, =(a1i2r3e45s789g+6 - 0x80CE28); \"r3e45s789g\"       ; +0x9e, 0x80ce22\nADD             R2, PC; \"r3e45s789g\"                                   ; +0xa0, 0x80ce24\nLDR             R3, [R0]                                               ; +0xa2, 0x80ce26\nLDR             R5, [R3,#0x10]                                         ; +0xa4, 0x80ce28\nLDRB.W          R3, [SP,#0x5C+var_38]                                  ; +0xa6, 0x80ce2a\nLSLS            R1, R3, #0x1F                                          ; +0xaa, 0x80ce2e\nADD             R3, SP, #0x5C+var_40                                   ; +0xac, 0x80ce30\nITE PL                                                                 ; +0xae, 0x80ce32\nADDPL.W         R1, SP, #0x5C+var_38+1                                 ; +0xb0, 0x80ce34\nLDRMI           R1, [SP,#0x5C+var_30]                                  ; +0xb4, 0x80ce38\nBLX             R5                                                     ; +0xb6, 0x80ce3a\nMOV             R5, R0                                                 ; +0xb8, 0x80ce3c\nMOV             R0, R6; this                                           ; +0xba, 0x80ce3e\nBL              _ZN4pugi16xml_parse_resultC1Ev; pugi::xml_parse_result::xml_parse_result(void) ; +0xbc, 0x80ce40\nCBZ             R5, loc_80CE88                                         ; +0xc0, 0x80ce44\nADD.W           R11, SP, #0x5C+var_14                                  ; +0xc2, 0x80ce46\nMOVS            R3, #0xB                                               ; +0xc6, 0x80ce4a\nMOV             R2, R8; bool                                           ; +0xc8, 0x80ce4c\nSTR             R3, [SP,#0x5C+var_5C]; int                             ; +0xca, 0x80ce4e\nMOV             R0, R11; this                                          ; +0xcc, 0x80ce50\nLDR             R3, [SP,#0x5C+var_40]; int                             ; +0xce, 0x80ce52\nMOV             R1, R5; unsigned __int8 *                              ; +0xd0, 0x80ce54\nBL              _ZN7cocos2d8ZipUtils17decompressString2EPhbii; cocos2d::ZipUtils::decompressString2(uchar *,bool,int,int) ; +0xd2, 0x80ce56\nLDRB.W          R3, [SP,#0x5C+var_14]                                  ; +0xd6, 0x80ce5a\nLSLS            R2, R3, #0x1F                                          ; +0xda, 0x80ce5e\nBPL             loc_80CEB0                                             ; +0xdc, 0x80ce60\nLDR             R2, [SP,#0x5C+var_C]; int                              ; +0xde, 0x80ce62\nLDR             R3, [SP,#0x5C+var_10]; int                             ; +0xe0, 0x80ce64\nADD.W           R8, SP, #0x5C+var_54                                   ; +0xe2, 0x80ce66\nMOVS            R0, #0x74 ; 't'                                        ; +0xe6, 0x80ce6a\nMOVS            R1, #0                                                 ; +0xe8, 0x80ce6c\nSTMEA.W         SP, {R0,R1}                                            ; +0xea, 0x80ce6e\nMOV             R0, R8; int                                            ; +0xee, 0x80ce72\nMOV             R1, R4; this                                           ; +0xf0, 0x80ce74\nBL              _ZN4pugi12xml_document11load_bufferEPKvjjNS_12xml_encodingE; pugi::xml_document::load_buffer(void const*,uint,uint,pugi::xml_encoding) ; +0xf2, 0x80ce76\nLDM.W           R8, {R0-R2}                                            ; +0xf6, 0x80ce7a\nSTM.W           R6, {R0-R2}                                            ; +0xfa, 0x80ce7e\nMOV             R0, R11                                                ; +0xfe, 0x80ce82\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x100, 0x80ce84\nMOV             R0, R6                                                 ; +0x104, 0x80ce88\nBL              _ZNK4pugi16xml_parse_resultcvbEv; pugi::xml_parse_result::operator bool(void) ; +0x106, 0x80ce8a\nMOV             R6, R0                                                 ; +0x10a, 0x80ce8e\nCBZ             R0, loc_80CEE8                                         ; +0x10c, 0x80ce90\nCBNZ            R5, loc_80CEB8                                         ; +0x10e, 0x80ce92\nMOV             R6, R5                                                 ; +0x110, 0x80ce94\nMOV             R0, R10                                                ; +0x112, 0x80ce96\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x114, 0x80ce98\nMOV             R0, R9                                                 ; +0x118, 0x80ce9c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x11a, 0x80ce9e\nLDR             R2, [SP,#0x5C+var_8]                                   ; +0x11e, 0x80cea2\nLDR             R3, [R7]                                               ; +0x120, 0x80cea4\nMOV             R0, R6                                                 ; +0x122, 0x80cea6\nCMP             R2, R3                                                 ; +0x124, 0x80cea8\nBEQ             loc_80CEF4                                             ; +0x126, 0x80ceaa\nBLX             __stack_chk_fail                                       ; +0x128, 0x80ceac\nASRS            R3, R3, #1                                             ; +0x12c, 0x80ceb0\nADD.W           R2, SP, #0x5C+var_13                                   ; +0x12e, 0x80ceb2\nB               loc_80CE66                                             ; +0x132, 0x80ceb6\nLDR             R1, =(aPlist_0 - 0x80CEC4); \"plist\"                    ; +0x134, 0x80ceb8\nMOV             R0, R4; this                                           ; +0x136, 0x80ceba\nLDR.W           R8, [R4,#0xCC]                                         ; +0x138, 0x80cebc\nADD             R1, PC; \"plist\"                                        ; +0x13c, 0x80cec0\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x13e, 0x80cec2\nADD             R3, SP, #0x5C+var_4                                    ; +0x142, 0x80cec6\nLDR             R1, =(aDict_1 - 0x80CECE); \"dict\"                      ; +0x144, 0x80cec8\nADD             R1, PC; \"dict\"                                         ; +0x146, 0x80ceca\nSTR.W           R0, [R3,#-0x38]!                                       ; +0x148, 0x80cecc\nMOV             R0, R3; this                                           ; +0x14c, 0x80ced0\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x14e, 0x80ced2\nSTR.W           R0, [R8,#-4]                                           ; +0x152, 0x80ced6\nMOV             R0, R5; void *                                         ; +0x156, 0x80ceda\nBL              _ZdaPv; operator delete[](void *)                      ; +0x158, 0x80cedc\nMOV             R0, R4; this                                           ; +0x15c, 0x80cee0\nBL              _ZN13DS_Dictionary18checkCompatibilityEv; DS_Dictionary::checkCompatibility(void) ; +0x15e, 0x80cee2\nB               loc_80CE96                                             ; +0x162, 0x80cee6\nCMP             R5, #0                                                 ; +0x164, 0x80cee8\nBEQ             loc_80CE96                                             ; +0x166, 0x80ceea\nMOV             R0, R5; void *                                         ; +0x168, 0x80ceec\nBL              _ZdaPv; operator delete[](void *)                      ; +0x16a, 0x80ceee\nB               loc_80CE96                                             ; +0x16e, 0x80cef2\nADD             SP, SP, #0x5C ; '\\'                                    ; +0x170, 0x80cef4\nPOP.W           {R4-R11,PC}                                            ; +0x172, 0x80cef6", "xrefs": ["GManager::tryLoadData @ 0x3d4050"], "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"}