{"type": "func", "start": 8443932, "end": 8444304, "name": "DS_Dictionary::getObjectForKey", "pseudocode": "// \n// DS_Dictionary::getObjectForKey from 0x80d81c to 0x80d990 (372 bytes)\n// \n// 1 xrefs:\n// > DS_Dictionary::getArrayForKey @ 0x80da26\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:34 +0000\n// \n\ncocos2d::CCDictionary *__fastcall DS_Dictionary::getObjectForKey(DS_Dictionary *this, const char *a2)\n{\n  pugi::xml_node *v4; // r0\n  const char *v5; // r1\n  int v6; // r0\n  const char *v7; // r0\n  int sibling; // r0\n  int v9; // r3\n  const char *v10; // r8\n  const char *v11; // r0\n  _DWORD *v12; // r3\n  int BoolForKey; // r5\n  ObjectDecoder *IntegerForKey; // r3\n  const char *v15; // r4\n  const char *v16; // r0\n  size_t v17; // r2\n  const __int16 *v18; // r1\n  const char *v19; // r0\n  const __int16 *v20; // r5\n  size_t v21; // r0\n  cocos2d::CCObject *v22; // r5\n  const char *v23; // r1\n  int i; // [sp+0h] [bp-1Ch] BYREF\n  int v26; // [sp+4h] [bp-18h] BYREF\n  int v27; // [sp+8h] [bp-14h] BYREF\n  int v28; // [sp+Ch] [bp-10h]\n  int v29; // [sp+10h] [bp-Ch]\n\n  v4 = (pugi::xml_node *)(*((_DWORD *)this + 51) - 4);\n  if ( *((_BYTE *)this + 212) )\n    v5 = \"key\";\n  else\n    v5 = \"k\";\n  for ( i = pugi::xml_node::child(v4, v5); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v23) )\n  {\n    v6 = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);\n    if ( !v6 )\n      return (cocos2d::CCDictionary *)v6;\n    v7 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);\n    if ( !strcmp(a2, v7) )\n      break;\n    if ( *((_BYTE *)this + 212) )\n      v23 = \"key\";\n    else\n      v23 = \"k\";\n  }\n  sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);\n  v9 = *((unsigned __int8 *)this + 212);\n  v26 = sibling;\n  if ( v9 )\n    v10 = \"dict\";\n  else\n    v10 = \"d\";\n  v11 = (const char *)pugi::xml_node::name((pugi::xml_node *)&v26);\n  if ( !strcmp(v10, v11) )\n  {\n    v12 = *((_DWORD **)this + 51);\n    if ( v12 == *((_DWORD **)this + 52) )\n    {\n      std::vector<pugi::xml_node>::__push_back_slow_path<pugi::xml_node const&>((int *)this + 50, &v26);\n    }\n    else\n    {\n      if ( v12 )\n        *v12 = v26;\n      *((_DWORD *)this + 51) += 4;\n    }\n    BoolForKey = DS_Dictionary::getBoolForKey(this, \"_isArr\");\n    IntegerForKey = (ObjectDecoder *)DS_Dictionary::getIntegerForKey(this, \"kCEK\");\n    if ( IntegerForKey )\n      return DS_Dictionary::decodeObjectForKey(this, a2, 1, IntegerForKey);\n    if ( BoolForKey )\n      return (cocos2d::CCDictionary *)DS_Dictionary::getArrayForKey(this, a2, 1);\n    return DS_Dictionary::getDictForKey(this, a2, 1);\n  }\n  if ( *((_BYTE *)this + 212) )\n    v15 = \"true\";\n  else\n    v15 = \"t\";\n  v16 = (const char *)pugi::xml_node::name((pugi::xml_node *)&v26);\n  if ( !strcmp(v15, v16) )\n  {\n    v17 = 1;\n    v27 = 0;\n    v28 = 0;\n    v18 = a1i2r3e45s789g;\n    v29 = 0;\n  }\n  else\n  {\n    v19 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&v26);\n    v27 = 0;\n    v28 = 0;\n    v29 = 0;\n    v20 = (const __int16 *)v19;\n    v21 = strlen(v19);\n    v18 = v20;\n    v17 = v21;\n  }\n  std::string::__init(&v27, v18, v17);\n  v22 = cocos2d::CCString::create((int)&v27);\n  std::string::~string((int)&v27);\n  return v22;\n}", "assembly": "; \n; DS_Dictionary::getObjectForKey from 0x80d81c to 0x80d990 (372 bytes)\n; \n; 1 xrefs:\n; > DS_Dictionary::getArrayForKey @ 0x80da26\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:34 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x80d81c\nSUB             SP, SP, #0x1C                                          ; +0x4, 0x80d820\nLDR             R6, =(__stack_chk_guard_ptr - 0x80D830)                ; +0x6, 0x80d822\nMOV             R4, R0                                                 ; +0x8, 0x80d824\nLDR.W           R0, [R0,#0xCC]                                         ; +0xa, 0x80d826\nMOV             R7, R1                                                 ; +0xe, 0x80d82a\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x80d82c\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x80d82e\nSUBS            R0, #4; this                                           ; +0x14, 0x80d830\nLDR             R3, [R6]                                               ; +0x16, 0x80d832\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x18, 0x80d834\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x1a, 0x80d836\nCBNZ            R3, loc_80D842                                         ; +0x1e, 0x80d83a\nLDR             R1, =(aK_0 - 0x80D842); \"k\"                            ; +0x20, 0x80d83c\nADD             R1, PC; \"k\"                                            ; +0x22, 0x80d83e\nB               loc_80D846                                             ; +0x24, 0x80d840\nLDR             R1, =(aKey - 0x80D848); \"key\"                          ; +0x26, 0x80d842\nADD             R1, PC; \"key\"                                          ; +0x28, 0x80d844\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x2a, 0x80d846\nLDR.W           R8, =(aKey - 0x80D858); \"key\"                          ; +0x2e, 0x80d84a\nLDR.W           R9, =(aK_0 - 0x80D85A); \"k\"                            ; +0x32, 0x80d84e\nADD             R5, SP, #0x1C+var_4                                    ; +0x36, 0x80d852\nADD             R8, PC; \"key\"                                          ; +0x38, 0x80d854\nADD             R9, PC; \"k\"                                            ; +0x3a, 0x80d856\nSTR.W           R0, [R5,#-0x18]!                                       ; +0x3c, 0x80d858\nMOV             R0, R5                                                 ; +0x40, 0x80d85c\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x42, 0x80d85e\nCMP             R0, #0                                                 ; +0x46, 0x80d862\nBEQ.W           loc_80D97A                                             ; +0x48, 0x80d864\nMOV             R0, R5; this                                           ; +0x4c, 0x80d868\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x4e, 0x80d86a\nMOV             R1, R0; char *                                         ; +0x52, 0x80d86e\nMOV             R0, R7; char *                                         ; +0x54, 0x80d870\nBLX             strcmp                                                 ; +0x56, 0x80d872\nCMP             R0, #0                                                 ; +0x5a, 0x80d876\nBNE             loc_80D964                                             ; +0x5c, 0x80d878\nMOV             R0, R5; this                                           ; +0x5e, 0x80d87a\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x60, 0x80d87c\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x64, 0x80d880\nSTR             R0, [SP,#0x1C+var_18]                                  ; +0x68, 0x80d884\nCBNZ            R3, loc_80D890                                         ; +0x6a, 0x80d886\nLDR.W           R8, =(aD_1 - 0x80D890); \"d\"                            ; +0x6c, 0x80d888\nADD             R8, PC; \"d\"                                            ; +0x70, 0x80d88c\nB               loc_80D896                                             ; +0x72, 0x80d88e\nLDR.W           R8, =(aDict_1 - 0x80D898); \"dict\"                      ; +0x74, 0x80d890\nADD             R8, PC; \"dict\"                                         ; +0x78, 0x80d894\nADD             R5, SP, #0x1C+var_18                                   ; +0x7a, 0x80d896\nMOV             R0, R5; this                                           ; +0x7c, 0x80d898\nBL              _ZNK4pugi8xml_node4nameEv; pugi::xml_node::name(void)  ; +0x7e, 0x80d89a\nMOV             R1, R0; char *                                         ; +0x82, 0x80d89e\nMOV             R0, R8; char *                                         ; +0x84, 0x80d8a0\nBLX             strcmp                                                 ; +0x86, 0x80d8a2\nCBNZ            R0, loc_80D904                                         ; +0x8a, 0x80d8a6\nLDR.W           R3, [R4,#0xCC]                                         ; +0x8c, 0x80d8a8\nLDR.W           R2, [R4,#0xD0]                                         ; +0x90, 0x80d8ac\nCMP             R3, R2                                                 ; +0x94, 0x80d8b0\nBEQ             loc_80D8C6                                             ; +0x96, 0x80d8b2\nCBZ             R3, loc_80D8BA                                         ; +0x98, 0x80d8b4\nLDR             R2, [SP,#0x1C+var_18]                                  ; +0x9a, 0x80d8b6\nSTR             R2, [R3]                                               ; +0x9c, 0x80d8b8\nLDR.W           R3, [R4,#0xCC]                                         ; +0x9e, 0x80d8ba\nADDS            R3, #4                                                 ; +0xa2, 0x80d8be\nSTR.W           R3, [R4,#0xCC]                                         ; +0xa4, 0x80d8c0\nB               loc_80D8D0                                             ; +0xa8, 0x80d8c4\nADD.W           R0, R4, #0xC8                                          ; +0xaa, 0x80d8c6\nMOV             R1, R5                                                 ; +0xae, 0x80d8ca\nBL              _ZNSt6__ndk16vectorIN4pugi8xml_nodeENS_9allocatorIS2_EEE21__push_back_slow_pathIRKS2_EEvOT_; std::vector<pugi::xml_node>::__push_back_slow_path<pugi::xml_node const&>(pugi::xml_node const&) ; +0xb0, 0x80d8cc\nLDR             R1, =(aIsarr - 0x80D8D8); \"_isArr\"                     ; +0xb4, 0x80d8d0\nMOV             R0, R4; this                                           ; +0xb6, 0x80d8d2\nADD             R1, PC; \"_isArr\"                                       ; +0xb8, 0x80d8d4\nBL              _ZN13DS_Dictionary13getBoolForKeyEPKc; DS_Dictionary::getBoolForKey(char const*) ; +0xba, 0x80d8d6\nLDR             R1, =(aKcek - 0x80D8E0); \"kCEK\"                        ; +0xbe, 0x80d8da\nADD             R1, PC; \"kCEK\"                                         ; +0xc0, 0x80d8dc\nMOV             R5, R0                                                 ; +0xc2, 0x80d8de\nMOV             R0, R4; this                                           ; +0xc4, 0x80d8e0\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0xc6, 0x80d8e2\nMOV             R1, R7; char *                                         ; +0xca, 0x80d8e6\nMOVS            R2, #1; bool                                           ; +0xcc, 0x80d8e8\nMOV             R3, R0; int                                            ; +0xce, 0x80d8ea\nMOV             R0, R4; this                                           ; +0xd0, 0x80d8ec\nCBZ             R3, loc_80D8F6                                         ; +0xd2, 0x80d8ee\nBL              _ZN13DS_Dictionary18decodeObjectForKeyEPKcbi; DS_Dictionary::decodeObjectForKey(char const*,bool,int) ; +0xd4, 0x80d8f0\nB               loc_80D97A                                             ; +0xd8, 0x80d8f4\nCBZ             R5, loc_80D8FE                                         ; +0xda, 0x80d8f6\nBL              _ZN13DS_Dictionary14getArrayForKeyEPKcb; DS_Dictionary::getArrayForKey(char const*,bool) ; +0xdc, 0x80d8f8\nB               loc_80D97A                                             ; +0xe0, 0x80d8fc\nBL              _ZN13DS_Dictionary13getDictForKeyEPKcb; DS_Dictionary::getDictForKey(char const*,bool) ; +0xe2, 0x80d8fe\nB               loc_80D97A                                             ; +0xe6, 0x80d902\nLDRB.W          R3, [R4,#0xD4]                                         ; +0xe8, 0x80d904\nCBNZ            R3, loc_80D910                                         ; +0xec, 0x80d908\nLDR             R4, =(aT - 0x80D910); \"t\"                              ; +0xee, 0x80d90a\nADD             R4, PC; \"t\"                                            ; +0xf0, 0x80d90c\nB               loc_80D914                                             ; +0xf2, 0x80d90e\nLDR             R4, =(aTrue - 0x80D916); \"true\"                        ; +0xf4, 0x80d910\nADD             R4, PC; \"true\"                                         ; +0xf6, 0x80d912\nMOV             R0, R5; this                                           ; +0xf8, 0x80d914\nBL              _ZNK4pugi8xml_node4nameEv; pugi::xml_node::name(void)  ; +0xfa, 0x80d916\nMOV             R1, R0; char *                                         ; +0xfe, 0x80d91a\nMOV             R0, R4; char *                                         ; +0x100, 0x80d91c\nBLX             strcmp                                                 ; +0x102, 0x80d91e\nADD             R4, SP, #0x1C+var_14                                   ; +0x106, 0x80d922\nCBNZ            R0, loc_80D936                                         ; +0x108, 0x80d924\nLDR             R1, =(a1i2r3e45s789g - 0x80D932); \"1i2r3e45s789g\"      ; +0x10a, 0x80d926\nMOVS            R2, #1                                                 ; +0x10c, 0x80d928\nSTR             R0, [SP,#0x1C+var_14]                                  ; +0x10e, 0x80d92a\nSTR             R0, [SP,#0x1C+var_10]                                  ; +0x110, 0x80d92c\nADD             R1, PC; \"1i2r3e45s789g\"                                ; +0x112, 0x80d92e\nSTR             R0, [SP,#0x1C+var_C]                                   ; +0x114, 0x80d930\nMOV             R0, R4                                                 ; +0x116, 0x80d932\nB               loc_80D950                                             ; +0x118, 0x80d934\nMOV             R0, R5; this                                           ; +0x11a, 0x80d936\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x11c, 0x80d938\nMOVS            R3, #0                                                 ; +0x120, 0x80d93c\nSTR             R3, [SP,#0x1C+var_14]                                  ; +0x122, 0x80d93e\nSTR             R3, [SP,#0x1C+var_10]                                  ; +0x124, 0x80d940\nSTR             R3, [SP,#0x1C+var_C]                                   ; +0x126, 0x80d942\nMOV             R5, R0                                                 ; +0x128, 0x80d944\nBLX             strlen                                                 ; +0x12a, 0x80d946\nMOV             R1, R5                                                 ; +0x12e, 0x80d94a\nMOV             R2, R0                                                 ; +0x130, 0x80d94c\nMOV             R0, R4                                                 ; +0x132, 0x80d94e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x134, 0x80d950\nMOV             R0, R4                                                 ; +0x138, 0x80d954\nBL              _ZN7cocos2d8CCString6createERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCString::create(std::string const&) ; +0x13a, 0x80d956\nMOV             R5, R0                                                 ; +0x13e, 0x80d95a\nMOV             R0, R4                                                 ; +0x140, 0x80d95c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x142, 0x80d95e\nB               loc_80D97C                                             ; +0x146, 0x80d962\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x148, 0x80d964\nMOV             R0, R5; this                                           ; +0x14c, 0x80d968\nCMP             R3, #0                                                 ; +0x14e, 0x80d96a\nITE NE                                                                 ; +0x150, 0x80d96c\nMOVNE           R1, R8                                                 ; +0x152, 0x80d96e\nMOVEQ           R1, R9; char *                                         ; +0x154, 0x80d970\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0x156, 0x80d972\nSTR             R0, [SP,#0x1C+var_1C]                                  ; +0x15a, 0x80d976\nB               loc_80D85C                                             ; +0x15c, 0x80d978\nMOV             R5, R0                                                 ; +0x15e, 0x80d97a\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x160, 0x80d97c\nMOV             R0, R5                                                 ; +0x162, 0x80d97e\nLDR             R3, [R6]                                               ; +0x164, 0x80d980\nCMP             R2, R3                                                 ; +0x166, 0x80d982\nBEQ             loc_80D98A                                             ; +0x168, 0x80d984\nBLX             __stack_chk_fail                                       ; +0x16a, 0x80d986\nADD             SP, SP, #0x1C                                          ; +0x16e, 0x80d98a\nPOP.W           {R4-R9,PC}                                             ; +0x170, 0x80d98c", "xrefs": ["DS_Dictionary::getArrayForKey @ 0x80da26"], "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"}