{"type": "func", "start": 8432940, "end": 8433020, "name": "DS_Dictionary::getNumKeys", "pseudocode": "// \n// DS_Dictionary::getNumKeys from 0x80ad2c to 0x80ad7c (80 bytes)\n// \n// 4 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x3c4396\n// > CCAnimateFrameCache::addDict @ 0x3c43da\n// > CCAnimateFrameCache::addDict @ 0x3c44a6\n// > DS_Dictionary::getArrayForKey @ 0x80da02\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:29 +0000\n// \n\nint __fastcall DS_Dictionary::getNumKeys(DS_Dictionary *this)\n{\n  int v1; // r6\n  int i; // [sp+4h] [bp-4h] BYREF\n  int sibling; // [sp+8h] [bp+0h] BYREF\n\n  v1 = 0;\n  for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4));\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);\n        i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )\n  {\n    ++v1;\n    sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);\n  }\n  return v1;\n}", "assembly": "; \n; DS_Dictionary::getNumKeys from 0x80ad2c to 0x80ad7c (80 bytes)\n; \n; 4 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x3c4396\n; > CCAnimateFrameCache::addDict @ 0x3c43da\n; > CCAnimateFrameCache::addDict @ 0x3c44a6\n; > DS_Dictionary::getArrayForKey @ 0x80da02\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:29 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x80ad2c\nSUB             SP, SP, #0x14                                          ; +0x2, 0x80ad2e\nLDR             R4, =(__stack_chk_guard_ptr - 0x80AD3E)                ; +0x4, 0x80ad30\nADD             R5, SP, #0x14+var_4                                    ; +0x6, 0x80ad32\nLDR.W           R0, [R0,#0xCC]                                         ; +0x8, 0x80ad34\nADD             R7, SP, #8                                             ; +0xc, 0x80ad38\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x80ad3a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x80ad3c\nMOVS            R6, #0                                                 ; +0x12, 0x80ad3e\nSUBS            R0, #4; this                                           ; +0x14, 0x80ad40\nLDR             R3, [R4]                                               ; +0x16, 0x80ad42\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x18, 0x80ad44\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x1a, 0x80ad46\nSTR.W           R0, [R5,#-0xC]!                                        ; +0x1e, 0x80ad4a\nMOV             R0, R5                                                 ; +0x22, 0x80ad4e\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x24, 0x80ad50\nCBZ             R0, loc_80AD6A                                         ; +0x28, 0x80ad54\nMOV             R0, R5; this                                           ; +0x2a, 0x80ad56\nADDS            R6, #1                                                 ; +0x2c, 0x80ad58\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x2e, 0x80ad5a\nSTR             R0, [SP,#0x14+var_C]                                   ; +0x32, 0x80ad5e\nMOV             R0, R7; this                                           ; +0x34, 0x80ad60\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x36, 0x80ad62\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x3a, 0x80ad66\nB               loc_80AD4E                                             ; +0x3c, 0x80ad68\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x3e, 0x80ad6a\nMOV             R0, R6                                                 ; +0x40, 0x80ad6c\nLDR             R3, [R4]                                               ; +0x42, 0x80ad6e\nCMP             R2, R3                                                 ; +0x44, 0x80ad70\nBEQ             loc_80AD78                                             ; +0x46, 0x80ad72\nBLX             __stack_chk_fail                                       ; +0x48, 0x80ad74\nADD             SP, SP, #0x14                                          ; +0x4c, 0x80ad78\nPOP             {R4-R7,PC}                                             ; +0x4e, 0x80ad7a", "xrefs": ["CCAnimateFrameCache::addDict @ 0x3c4396", "CCAnimateFrameCache::addDict @ 0x3c43da", "CCAnimateFrameCache::addDict @ 0x3c44a6", "DS_Dictionary::getArrayForKey @ 0x80da02"], "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"}