{"type": "func", "start": 14376992, "end": 14377140, "name": "DS_Dictionary::getNumKeys", "pseudocode": "// \n// DS_Dictionary::getNumKeys from 0xdb6020 to 0xdb60b4 (148 bytes)\n// \n// 5 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x68dee8\n// > CCAnimateFrameCache::addDict @ 0x68df48\n// > CCAnimateFrameCache::addDict @ 0x68e0b4\n// > DS_Dictionary::getArrayForKey @ 0xdbbe28\n// > <???> @ 0x102cb8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:08:41 +0000\n// \n\n__int64 __fastcall DS_Dictionary::getNumKeys(DS_Dictionary *this)\n{\n  unsigned int v1; // w20\n  __int64 i; // [xsp+38h] [xbp+38h] BYREF\n  __int64 sibling; // [xsp+40h] [xbp+40h] BYREF\n\n  v1 = 0;\n  for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL));\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 0xdb6020 to 0xdb60b4 (148 bytes)\n; \n; 5 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x68dee8\n; > CCAnimateFrameCache::addDict @ 0x68df48\n; > CCAnimateFrameCache::addDict @ 0x68e0b4\n; > DS_Dictionary::getArrayForKey @ 0xdbbe28\n; > <???> @ 0x102cb8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:08:41 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xdb6020\nMOV             X29, SP                                                ; +0x4, 0xdb6024\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x8, 0xdb6028\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xdb602c\nADD             X21, X29, #0x50+var_10                                 ; +0x10, 0xdb6030\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x14, 0xdb6034\nADD             X19, X29, #0x50+arg_0                                  ; +0x18, 0xdb6038\nMOV             W20, #0                                                ; +0x1c, 0xdb603c\nLDR             X1, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xdb6040\nLDR             X0, [X0,#0xD8]                                         ; +0x24, 0xdb6044\nLDR             X1, [X1]                                               ; +0x28, 0xdb6048\nSUB             X0, X0, #8; this                                       ; +0x2c, 0xdb604c\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x30, 0xdb6050\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x34, 0xdb6054\nSTR             X0, [X19,#-0x18]!                                      ; +0x38, 0xdb6058\nB               loc_DB607C                                             ; +0x3c, 0xdb605c\nMOV             X0, X19; this                                          ; +0x40, 0xdb6060\nADD             W20, W20, #1                                           ; +0x44, 0xdb6064\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x48, 0xdb6068\nSTR             X0, [X29,#0x50+var_10]                                 ; +0x4c, 0xdb606c\nMOV             X0, X21; this                                          ; +0x50, 0xdb6070\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x54, 0xdb6074\nSTR             X0, [X29,#0x50+var_18]                                 ; +0x58, 0xdb6078\nMOV             X0, X19                                                ; +0x5c, 0xdb607c\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x60, 0xdb6080\nCBNZ            X0, loc_DB6060                                         ; +0x64, 0xdb6084\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x68, 0xdb6088\nMOV             W0, W20                                                ; +0x6c, 0xdb608c\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x70, 0xdb6090\nLDR             X1, [X22]                                              ; +0x74, 0xdb6094\nCMP             X2, X1                                                 ; +0x78, 0xdb6098\nB.NE            loc_DB60B0                                             ; +0x7c, 0xdb609c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x80, 0xdb60a0\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x84, 0xdb60a4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x88, 0xdb60a8\nRET                                                                    ; +0x8c, 0xdb60ac\nBL              .__stack_chk_fail                                      ; +0x90, 0xdb60b0", "xrefs": ["CCAnimateFrameCache::addDict @ 0x68dee8", "CCAnimateFrameCache::addDict @ 0x68df48", "CCAnimateFrameCache::addDict @ 0x68e0b4", "DS_Dictionary::getArrayForKey @ 0xdbbe28", "<???> @ 0x102cb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}