{"type": "func", "start": 8436136, "end": 8436268, "name": "DS_Dictionary::getKey", "pseudocode": "// \n// DS_Dictionary::getKey from 0x80b9a8 to 0x80ba2c (132 bytes)\n// \n// 3 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x3c43ae\n// > CCAnimateFrameCache::addDict @ 0x3c44de\n// > DS_Dictionary::getArrayForKey @ 0x80da12\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:31 +0000\n// \n\nDS_Dictionary *__fastcall DS_Dictionary::getKey(DS_Dictionary *this, unsigned int a2, int a3)\n{\n  int v5; // r7\n  const char *v6; // r0\n  const char *v7; // r5\n  size_t v8; // r0\n  int i; // [sp+4h] [bp-10h] BYREF\n  int sibling; // [sp+8h] [bp-Ch] BYREF\n\n  v5 = 0;\n  for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*(_DWORD *)(a2 + 204) - 4));\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);\n        i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )\n  {\n    if ( v5 == a3 )\n    {\n      v6 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);\n      *(_DWORD *)this = 0;\n      *((_DWORD *)this + 1) = 0;\n      *((_DWORD *)this + 2) = 0;\n      v7 = v6;\n      v8 = strlen(v6);\n      std::string::__init((int *)this, v7, v8);\n      return this;\n    }\n    ++v5;\n    sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);\n  }\n  *(_DWORD *)this = 0;\n  *((_DWORD *)this + 1) = 0;\n  *((_DWORD *)this + 2) = 0;\n  return this;\n}", "assembly": "; \n; DS_Dictionary::getKey from 0x80b9a8 to 0x80ba2c (132 bytes)\n; \n; 3 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x3c43ae\n; > CCAnimateFrameCache::addDict @ 0x3c44de\n; > DS_Dictionary::getArrayForKey @ 0x80da12\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:31 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x80b9a8\nMOV             R4, R0                                                 ; +0x4, 0x80b9ac\nLDR             R6, =(__stack_chk_guard_ptr - 0x80B9BC)                ; +0x6, 0x80b9ae\nSUB             SP, SP, #0x14                                          ; +0x8, 0x80b9b0\nLDR.W           R0, [R1,#0xCC]                                         ; +0xa, 0x80b9b2\nMOV             R8, R2                                                 ; +0xe, 0x80b9b6\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x80b9b8\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x80b9ba\nADD             R5, SP, #0x14+var_4                                    ; +0x14, 0x80b9bc\nSUBS            R0, #4; this                                           ; +0x16, 0x80b9be\nADD.W           R9, SP, #0x14+var_C                                    ; +0x18, 0x80b9c0\nLDR             R3, [R6]                                               ; +0x1c, 0x80b9c4\nMOVS            R7, #0                                                 ; +0x1e, 0x80b9c6\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x20, 0x80b9c8\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x22, 0x80b9ca\nSTR.W           R0, [R5,#-0xC]!                                        ; +0x26, 0x80b9ce\nMOV             R0, R5                                                 ; +0x2a, 0x80b9d2\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x2c, 0x80b9d4\nCBZ             R0, loc_80BA12                                         ; +0x30, 0x80b9d8\nCMP             R7, R8                                                 ; +0x32, 0x80b9da\nBNE             loc_80B9FE                                             ; +0x34, 0x80b9dc\nMOV             R0, R5; this                                           ; +0x36, 0x80b9de\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x38, 0x80b9e0\nMOVS            R3, #0                                                 ; +0x3c, 0x80b9e4\nSTR             R3, [R4]                                               ; +0x3e, 0x80b9e6\nSTR             R3, [R4,#4]                                            ; +0x40, 0x80b9e8\nSTR             R3, [R4,#8]                                            ; +0x42, 0x80b9ea\nMOV             R5, R0                                                 ; +0x44, 0x80b9ec\nBLX             strlen                                                 ; +0x46, 0x80b9ee\nMOV             R1, R5                                                 ; +0x4a, 0x80b9f2\nMOV             R2, R0                                                 ; +0x4c, 0x80b9f4\nMOV             R0, R4                                                 ; +0x4e, 0x80b9f6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x50, 0x80b9f8\nB               loc_80BA18                                             ; +0x54, 0x80b9fc\nMOV             R0, R5; this                                           ; +0x56, 0x80b9fe\nADDS            R7, #1                                                 ; +0x58, 0x80ba00\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x5a, 0x80ba02\nSTR             R0, [SP,#0x14+var_C]                                   ; +0x5e, 0x80ba06\nMOV             R0, R9; this                                           ; +0x60, 0x80ba08\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x62, 0x80ba0a\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x66, 0x80ba0e\nB               loc_80B9D2                                             ; +0x68, 0x80ba10\nSTR             R0, [R4]                                               ; +0x6a, 0x80ba12\nSTR             R0, [R4,#4]                                            ; +0x6c, 0x80ba14\nSTR             R0, [R4,#8]                                            ; +0x6e, 0x80ba16\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x70, 0x80ba18\nMOV             R0, R4                                                 ; +0x72, 0x80ba1a\nLDR             R3, [R6]                                               ; +0x74, 0x80ba1c\nCMP             R2, R3                                                 ; +0x76, 0x80ba1e\nBEQ             loc_80BA26                                             ; +0x78, 0x80ba20\nBLX             __stack_chk_fail                                       ; +0x7a, 0x80ba22\nADD             SP, SP, #0x14                                          ; +0x7e, 0x80ba26\nPOP.W           {R4-R9,PC}                                             ; +0x80, 0x80ba28", "xrefs": ["CCAnimateFrameCache::addDict @ 0x3c43ae", "CCAnimateFrameCache::addDict @ 0x3c44de", "DS_Dictionary::getArrayForKey @ 0x80da12"], "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"}