{"type": "func", "start": 6278136, "end": 6278216, "name": "DS_Dictionary::getNumKeys", "pseudocode": "// \n// DS_Dictionary::getNumKeys from 0x5fcbf8 to 0x5fcc48 (80 bytes)\n// \n// 4 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x2e4980\n// > CCAnimateFrameCache::addDict @ 0x2e49b6\n// > CCAnimateFrameCache::addDict @ 0x2e4a5e\n// > DS_Dictionary::getArrayForKey @ 0x5ff854\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nunsigned int DS_Dictionary::getNumKeys(DS_Dictionary *a1)\n{\n  unsigned int v1; // r6\n  pugi::xml_node *v2; // r0\n  pugi::xml_node v4; // [sp+4h] [bp-4h] BYREF\n  pugi::xml_node v5; // [sp+8h] [bp+0h] BYREF\n\n  v1 = 0;\n  v2 = (pugi::xml_node *)std::vector<pugi::xml_node>::back((int)&a1->dictTree);\n  for ( v4._root = (pugi::xml_node_struct *)pugi::xml_node::first_child(v2);\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&v4);\n        v4._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v5) )\n  {\n    ++v1;\n    v5._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v4);\n  }\n  return v1;\n}", "assembly": "; \n; DS_Dictionary::getNumKeys from 0x5fcbf8 to 0x5fcc48 (80 bytes)\n; \n; 4 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x2e4980\n; > CCAnimateFrameCache::addDict @ 0x2e49b6\n; > CCAnimateFrameCache::addDict @ 0x2e4a5e\n; > DS_Dictionary::getArrayForKey @ 0x5ff854\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5fcbf8\nSUB             SP, SP, #0x14                                          ; +0x2, 0x5fcbfa\nLDR             R4, =(__stack_chk_guard_ptr - 0x5FCC08)                ; +0x4, 0x5fcbfc\nADDS            R0, #0xC8                                              ; +0x6, 0x5fcbfe\nADD             R5, SP, #0x14+var_4                                    ; +0x8, 0x5fcc00\nADD             R7, SP, #8                                             ; +0xa, 0x5fcc02\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x5fcc04\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x5fcc06\nMOVS            R6, #0                                                 ; +0x10, 0x5fcc08\nLDR             R3, [R4]                                               ; +0x12, 0x5fcc0a\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x5fcc0c\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x16, 0x5fcc0e\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x1a, 0x5fcc12\nSTR.W           R0, [R5,#-0xC]!                                        ; +0x1e, 0x5fcc16\nMOV             R0, R5                                                 ; +0x22, 0x5fcc1a\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x24, 0x5fcc1c\nCBZ             R0, loc_5FCC36                                         ; +0x28, 0x5fcc20\nMOV             R0, R5; this                                           ; +0x2a, 0x5fcc22\nADDS            R6, #1                                                 ; +0x2c, 0x5fcc24\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x2e, 0x5fcc26\nSTR             R0, [SP,#0x14+var_C]                                   ; +0x32, 0x5fcc2a\nMOV             R0, R7; this                                           ; +0x34, 0x5fcc2c\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x36, 0x5fcc2e\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x3a, 0x5fcc32\nB               loc_5FCC1A                                             ; +0x3c, 0x5fcc34\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x3e, 0x5fcc36\nMOV             R0, R6                                                 ; +0x40, 0x5fcc38\nLDR             R3, [R4]                                               ; +0x42, 0x5fcc3a\nCMP             R2, R3                                                 ; +0x44, 0x5fcc3c\nBEQ             loc_5FCC44                                             ; +0x46, 0x5fcc3e\nBLX             __stack_chk_fail                                       ; +0x48, 0x5fcc40\nADD             SP, SP, #0x14                                          ; +0x4c, 0x5fcc44\nPOP             {R4-R7,PC}                                             ; +0x4e, 0x5fcc46", "xrefs": ["CCAnimateFrameCache::addDict @ 0x2e4980", "CCAnimateFrameCache::addDict @ 0x2e49b6", "CCAnimateFrameCache::addDict @ 0x2e4a5e", "DS_Dictionary::getArrayForKey @ 0x5ff854"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}