{"type": "func", "start": 8441832, "end": 8441972, "name": "DS_Dictionary::stepBackToRootSubDict", "pseudocode": "// \n// DS_Dictionary::stepBackToRootSubDict from 0x80cfe8 to 0x80d074 (140 bytes)\n// \n// 1 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x3c4458\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:33 +0000\n// \n\nint *__fastcall DS_Dictionary::stepBackToRootSubDict(int *this, int a2, int a3)\n{\n  int *v3; // r4\n  int v4; // r1\n  int v5; // r3\n  _DWORD *v6; // r3\n  int v7; // r7\n  _DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v8[0] = this;\n  v8[1] = a2;\n  v8[2] = a3;\n  v3 = this;\n  v4 = *(this + 50);\n  if ( (unsigned int)(*(this + 51) - v4) > 7 )\n  {\n    while ( 1 )\n    {\n      v5 = *(this + 51);\n      if ( v4 == v5 )\n        break;\n      *(this + 51) = v5 - 4;\n    }\n    pugi::xml_node::xml_node((pugi::xml_node *)v8);\n    v6 = (_DWORD *)v3[51];\n    if ( (unsigned int)v6 >= v3[52] )\n    {\n      std::vector<pugi::xml_node>::__push_back_slow_path<pugi::xml_node>(v3 + 50, v8);\n    }\n    else\n    {\n      if ( v6 )\n        *v6 = v8[0];\n      v3[51] += 4;\n    }\n    v7 = v3[51];\n    v8[0] = pugi::xml_node::child((pugi::xml_node *)v3, \"plist\");\n    this = (int *)pugi::xml_node::child((pugi::xml_node *)v8, \"dict\");\n    *(_DWORD *)(v7 - 4) = this;\n  }\n  return this;\n}", "assembly": "; \n; DS_Dictionary::stepBackToRootSubDict from 0x80cfe8 to 0x80d074 (140 bytes)\n; \n; 1 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x3c4458\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:33 +0000\n; \nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x80cfe8\nMOV             R4, R0                                                 ; +0x2, 0x80cfea\nLDR             R2, =(__stack_chk_guard_ptr - 0x80CFF6)                ; +0x4, 0x80cfec\nLDR.W           R1, [R0,#0xC8]                                         ; +0x6, 0x80cfee\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0xa, 0x80cff2\nLDR             R2, [R2]; __stack_chk_guard                            ; +0xc, 0x80cff4\nLDR             R3, [R2]                                               ; +0xe, 0x80cff6\nMOV             R5, R2                                                 ; +0x10, 0x80cff8\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x12, 0x80cffa\nLDR.W           R3, [R0,#0xCC]                                         ; +0x14, 0x80cffc\nSUBS            R3, R3, R1                                             ; +0x18, 0x80d000\nCMP             R3, #7                                                 ; +0x1a, 0x80d002\nBLS             loc_80D064                                             ; +0x1c, 0x80d004\nLDR.W           R3, [R4,#0xCC]                                         ; +0x1e, 0x80d006\nCMP             R1, R3                                                 ; +0x22, 0x80d00a\nBEQ             loc_80D016                                             ; +0x24, 0x80d00c\nSUBS            R3, #4                                                 ; +0x26, 0x80d00e\nSTR.W           R3, [R4,#0xCC]                                         ; +0x28, 0x80d010\nB               loc_80D006                                             ; +0x2c, 0x80d014\nMOV             R0, SP; this                                           ; +0x2e, 0x80d016\nMOV             R6, SP                                                 ; +0x30, 0x80d018\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x32, 0x80d01a\nLDR.W           R3, [R4,#0xCC]                                         ; +0x36, 0x80d01e\nLDR.W           R2, [R4,#0xD0]                                         ; +0x3a, 0x80d022\nCMP             R3, R2                                                 ; +0x3e, 0x80d026\nBCS             loc_80D03C                                             ; +0x40, 0x80d028\nCBZ             R3, loc_80D030                                         ; +0x42, 0x80d02a\nLDR             R2, [SP,#0xC+var_C]                                    ; +0x44, 0x80d02c\nSTR             R2, [R3]                                               ; +0x46, 0x80d02e\nLDR.W           R3, [R4,#0xCC]                                         ; +0x48, 0x80d030\nADDS            R3, #4                                                 ; +0x4c, 0x80d034\nSTR.W           R3, [R4,#0xCC]                                         ; +0x4e, 0x80d036\nB               loc_80D046                                             ; +0x52, 0x80d03a\nADD.W           R0, R4, #0xC8                                          ; +0x54, 0x80d03c\nMOV             R1, SP                                                 ; +0x58, 0x80d040\nBL              _ZNSt6__ndk16vectorIN4pugi8xml_nodeENS_9allocatorIS2_EEE21__push_back_slow_pathIS2_EEvOT_; std::vector<pugi::xml_node>::__push_back_slow_path<pugi::xml_node>(pugi::xml_node &&) ; +0x5a, 0x80d042\nLDR             R1, =(aPlist_0 - 0x80D052); \"plist\"                    ; +0x5e, 0x80d046\nMOV             R0, R4; this                                           ; +0x60, 0x80d048\nLDR.W           R7, [R4,#0xCC]                                         ; +0x62, 0x80d04a\nADD             R1, PC; \"plist\"                                        ; +0x66, 0x80d04e\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x68, 0x80d050\nLDR             R1, =(aDict_1 - 0x80D05A); \"dict\"                      ; +0x6c, 0x80d054\nADD             R1, PC; \"dict\"                                         ; +0x6e, 0x80d056\nSTR             R0, [SP,#0xC+var_C]                                    ; +0x70, 0x80d058\nMOV             R0, R6; this                                           ; +0x72, 0x80d05a\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x74, 0x80d05c\nSTR.W           R0, [R7,#-4]                                           ; +0x78, 0x80d060\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x7c, 0x80d064\nLDR             R3, [R5]                                               ; +0x7e, 0x80d066\nCMP             R2, R3                                                 ; +0x80, 0x80d068\nBEQ             loc_80D070                                             ; +0x82, 0x80d06a\nBLX             __stack_chk_fail                                       ; +0x84, 0x80d06c\nADD             SP, SP, #0xC                                           ; +0x88, 0x80d070\nPOP             {R4-R7,PC}                                             ; +0x8a, 0x80d072", "xrefs": ["CCAnimateFrameCache::addDict @ 0x3c4458"], "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"}