{"type": "func", "start": 3951040, "end": 3951402, "name": "CCAnimateFrameCache::addDict", "pseudocode": "// \n// CCAnimateFrameCache::addDict from 0x3c49c0 to 0x3c4b2a (362 bytes)\n// \n// 1 xrefs:\n// > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x3c4e6a\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 11:46:33 +0000\n// \n\ncocos2d::CCDictionary *__fastcall CCAnimateFrameCache::addDict(\n        CCAnimateFrameCache *this,\n        cocos2d::CCDictionary *a2,\n        const char *a3)\n{\n  int v4; // r9\n  size_t v6; // r0\n  cocos2d::CCDictionary *v7; // r10\n  unsigned int v8; // r6\n  cocos2d::CCArray *v9; // r9\n  cocos2d::CCString *v10; // r0\n  const char *CString; // r0\n  const char *v12; // r7\n  size_t v13; // r0\n  cocos2d::CCDictionary *v14; // r11\n  cocos2d::CCArray *v15; // r0\n  cocos2d::CCObject *v16; // r0\n  SpriteDescription *v17; // r3\n  size_t v18; // r0\n  const char *v19; // r7\n  cocos2d::CCString *v20; // r0\n  const char *v21; // r0\n  size_t v22; // r0\n  cocos2d::CCDictionary *v23; // r1\n  cocos2d::CCObject *Description; // r0\n  cocos2d::CCObject *v26; // [sp+4h] [bp-28h]\n  SpriteDescription *v28; // [sp+14h] [bp-18h]\n  SpriteDescription *v29; // [sp+14h] [bp-18h]\n  SpriteDescription *v30; // [sp+14h] [bp-18h]\n  int v31; // [sp+18h] [bp-14h] BYREF\n  int v32; // [sp+1Ch] [bp-10h]\n  int v33; // [sp+20h] [bp-Ch]\n\n  v4 = *((_DWORD *)this + 15);\n  v31 = 0;\n  v32 = 0;\n  v33 = 0;\n  v6 = strlen(a3);\n  std::string::__init(&v31, a3, v6);\n  cocos2d::CCDictionary::setObject(v4, a2);\n  std::string::~string((int)&v31);\n  v31 = 0;\n  v32 = 0;\n  v33 = 0;\n  std::string::__init(&v31, \"animationContainer\", 0x12u);\n  v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(a2, &v31);\n  std::string::~string((int)&v31);\n  v8 = 0;\n  v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v7);\n  while ( v8 < cocos2d::CCArray::count(v9) )\n  {\n    v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, v8);\n    CString = (const char *)cocos2d::CCString::getCString(v10);\n    v31 = 0;\n    v32 = 0;\n    v33 = 0;\n    v12 = CString;\n    v13 = strlen(CString);\n    std::string::__init(&v31, v12, v13);\n    v14 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v7, &v31);\n    v15 = (cocos2d::CCArray *)std::string::~string((int)&v31);\n    v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15);\n    v31 = 0;\n    v32 = 0;\n    v17 = *((SpriteDescription **)this + 13);\n    v33 = 0;\n    v28 = v17;\n    v26 = v16;\n    v18 = strlen(v12);\n    std::string::__init(&v31, v12, v18);\n    cocos2d::CCDictionary::setObject((int)v28, v26);\n    v19 = nullptr;\n    std::string::~string((int)&v31);\n    while ( (unsigned int)v19 < cocos2d::CCDictionary::count(v14) )\n    {\n      v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"sprite_%i\", v19);\n      v21 = (const char *)cocos2d::CCString::getCString(v20);\n      v31 = 0;\n      v32 = 0;\n      v33 = 0;\n      v29 = (SpriteDescription *)v21;\n      v22 = strlen(v21);\n      std::string::__init(&v31, v29, v22);\n      v30 = (SpriteDescription *)cocos2d::CCDictionary::objectForKey(v14, &v31);\n      std::string::~string((int)&v31);\n      ++v19;\n      Description = SpriteDescription::createDescription(v30, v23);\n      cocos2d::CCArray::addObject(v26, Description);\n    }\n    ++v8;\n  }\n  return a2;\n}", "assembly": "; \n; CCAnimateFrameCache::addDict from 0x3c49c0 to 0x3c4b2a (362 bytes)\n; \n; 1 xrefs:\n; > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x3c4e6a\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 11:46:33 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x3c49c0\nSUB             SP, SP, #0x2C                                          ; +0x4, 0x3c49c4\nLDR             R5, =(__stack_chk_guard_ptr - 0x3C49D4)                ; +0x6, 0x3c49c6\nMOV             R8, R1                                                 ; +0x8, 0x3c49c8\nLDR.W           R9, [R0,#0x3C]                                         ; +0xa, 0x3c49ca\nMOV             R6, R2                                                 ; +0xe, 0x3c49ce\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3c49d0\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x3c49d2\nSTR             R0, [SP,#0x2C+var_24]                                  ; +0x14, 0x3c49d4\nMOV             R0, R2; char *                                         ; +0x16, 0x3c49d6\nMOVS            R7, #0                                                 ; +0x18, 0x3c49d8\nLDR             R3, [R5]                                               ; +0x1a, 0x3c49da\nADD             R4, SP, #0x2C+var_14                                   ; +0x1c, 0x3c49dc\nSTR             R7, [SP,#0x2C+var_14]                                  ; +0x1e, 0x3c49de\nSTR             R7, [SP,#0x2C+var_10]                                  ; +0x20, 0x3c49e0\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x22, 0x3c49e2\nSTR             R7, [SP,#0x2C+var_C]                                   ; +0x24, 0x3c49e4\nBLX             strlen                                                 ; +0x26, 0x3c49e6\nMOV             R1, R6                                                 ; +0x2a, 0x3c49ea\nMOV             R2, R0                                                 ; +0x2c, 0x3c49ec\nMOV             R0, R4                                                 ; +0x2e, 0x3c49ee\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x30, 0x3c49f0\nMOV             R0, R9; int                                            ; +0x34, 0x3c49f4\nMOV             R1, R8; this                                           ; +0x36, 0x3c49f6\nMOV             R2, R4                                                 ; +0x38, 0x3c49f8\nSTR             R5, [SP,#0x2C+var_20]                                  ; +0x3a, 0x3c49fa\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x3c, 0x3c49fc\nMOV             R0, R4                                                 ; +0x40, 0x3c4a00\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x42, 0x3c4a02\nLDR             R1, =(aAnimationconta - 0x3C4A10); \"animationContainer\" ; +0x46, 0x3c4a06\nMOV             R0, R4                                                 ; +0x48, 0x3c4a08\nMOVS            R2, #0x12                                              ; +0x4a, 0x3c4a0a\nADD             R1, PC; \"animationContainer\"                           ; +0x4c, 0x3c4a0c\nSTR             R7, [SP,#0x2C+var_14]                                  ; +0x4e, 0x3c4a0e\nSTR             R7, [SP,#0x2C+var_10]                                  ; +0x50, 0x3c4a10\nSTR             R7, [SP,#0x2C+var_C]                                   ; +0x52, 0x3c4a12\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x54, 0x3c4a14\nMOV             R0, R8                                                 ; +0x58, 0x3c4a18\nMOV             R1, R4                                                 ; +0x5a, 0x3c4a1a\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x5c, 0x3c4a1c\nMOV             R10, R0                                                ; +0x60, 0x3c4a20\nMOV             R0, R4                                                 ; +0x62, 0x3c4a22\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x64, 0x3c4a24\nMOV             R0, R10; this                                          ; +0x68, 0x3c4a28\nBL              _ZN7cocos2d12CCDictionary7allKeysEv; cocos2d::CCDictionary::allKeys(void) ; +0x6a, 0x3c4a2a\nLDR             R3, =(aSpriteI - 0x3C4A38); \"sprite_%i\"                ; +0x6e, 0x3c4a2e\nMOV             R6, R7                                                 ; +0x70, 0x3c4a30\nMOV             R5, R7                                                 ; +0x72, 0x3c4a32\nADD             R3, PC; \"sprite_%i\"                                    ; +0x74, 0x3c4a34\nSTR             R3, [SP,#0x2C+var_1C]                                  ; +0x76, 0x3c4a36\nMOV             R9, R0                                                 ; +0x78, 0x3c4a38\nMOV             R0, R9; this                                           ; +0x7a, 0x3c4a3a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x7c, 0x3c4a3c\nCMP             R6, R0                                                 ; +0x80, 0x3c4a40\nBCS             loc_3C4B02                                             ; +0x82, 0x3c4a42\nMOV             R1, R6; unsigned int                                   ; +0x84, 0x3c4a44\nMOV             R0, R9; this                                           ; +0x86, 0x3c4a46\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x88, 0x3c4a48\nADD             R4, SP, #0x2C+var_14                                   ; +0x8c, 0x3c4a4c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x8e, 0x3c4a4e\nSTR             R5, [SP,#0x2C+var_14]                                  ; +0x92, 0x3c4a52\nSTR             R5, [SP,#0x2C+var_10]                                  ; +0x94, 0x3c4a54\nSTR             R5, [SP,#0x2C+var_C]                                   ; +0x96, 0x3c4a56\nMOV             R7, R0                                                 ; +0x98, 0x3c4a58\nBLX             strlen                                                 ; +0x9a, 0x3c4a5a\nMOV             R1, R7                                                 ; +0x9e, 0x3c4a5e\nMOV             R2, R0                                                 ; +0xa0, 0x3c4a60\nMOV             R0, R4                                                 ; +0xa2, 0x3c4a62\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xa4, 0x3c4a64\nMOV             R0, R10                                                ; +0xa8, 0x3c4a68\nMOV             R1, R4                                                 ; +0xaa, 0x3c4a6a\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0xac, 0x3c4a6c\nMOV             R11, R0                                                ; +0xb0, 0x3c4a70\nMOV             R0, R4                                                 ; +0xb2, 0x3c4a72\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb4, 0x3c4a74\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0xb8, 0x3c4a78\nLDR             R3, [SP,#0x2C+var_24]                                  ; +0xbc, 0x3c4a7c\nSTR             R5, [SP,#0x2C+var_14]                                  ; +0xbe, 0x3c4a7e\nSTR             R5, [SP,#0x2C+var_10]                                  ; +0xc0, 0x3c4a80\nLDR             R3, [R3,#0x34]                                         ; +0xc2, 0x3c4a82\nSTR             R5, [SP,#0x2C+var_C]                                   ; +0xc4, 0x3c4a84\nSTR             R3, [SP,#0x2C+var_18]                                  ; +0xc6, 0x3c4a86\nSTR             R0, [SP,#0x2C+var_28]                                  ; +0xc8, 0x3c4a88\nMOV             R0, R7; char *                                         ; +0xca, 0x3c4a8a\nBLX             strlen                                                 ; +0xcc, 0x3c4a8c\nMOV             R1, R7                                                 ; +0xd0, 0x3c4a90\nMOV             R2, R0                                                 ; +0xd2, 0x3c4a92\nMOV             R0, R4                                                 ; +0xd4, 0x3c4a94\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xd6, 0x3c4a96\nLDR             R3, [SP,#0x2C+var_18]                                  ; +0xda, 0x3c4a9a\nLDR             R1, [SP,#0x2C+var_28]; this                            ; +0xdc, 0x3c4a9c\nMOV             R2, R4                                                 ; +0xde, 0x3c4a9e\nMOV             R0, R3; int                                            ; +0xe0, 0x3c4aa0\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0xe2, 0x3c4aa2\nMOV             R0, R4                                                 ; +0xe6, 0x3c4aa6\nMOVS            R7, #0                                                 ; +0xe8, 0x3c4aa8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xea, 0x3c4aaa\nMOV             R0, R11; this                                          ; +0xee, 0x3c4aae\nBL              _ZN7cocos2d12CCDictionary5countEv; cocos2d::CCDictionary::count(void) ; +0xf0, 0x3c4ab0\nCMP             R7, R0                                                 ; +0xf4, 0x3c4ab4\nBCS             loc_3C4AFE                                             ; +0xf6, 0x3c4ab6\nMOV             R1, R7; char *                                         ; +0xf8, 0x3c4ab8\nLDR             R0, [SP,#0x2C+var_1C]; this                            ; +0xfa, 0x3c4aba\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xfc, 0x3c4abc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x100, 0x3c4ac0\nSTR             R5, [SP,#0x2C+var_14]                                  ; +0x104, 0x3c4ac4\nSTR             R5, [SP,#0x2C+var_10]                                  ; +0x106, 0x3c4ac6\nSTR             R5, [SP,#0x2C+var_C]                                   ; +0x108, 0x3c4ac8\nSTR             R0, [SP,#0x2C+var_18]                                  ; +0x10a, 0x3c4aca\nBLX             strlen                                                 ; +0x10c, 0x3c4acc\nLDR             R1, [SP,#0x2C+var_18]                                  ; +0x110, 0x3c4ad0\nMOV             R2, R0                                                 ; +0x112, 0x3c4ad2\nMOV             R0, R4                                                 ; +0x114, 0x3c4ad4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x116, 0x3c4ad6\nMOV             R0, R11                                                ; +0x11a, 0x3c4ada\nMOV             R1, R4                                                 ; +0x11c, 0x3c4adc\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x11e, 0x3c4ade\nSTR             R0, [SP,#0x2C+var_18]                                  ; +0x122, 0x3c4ae2\nMOV             R0, R4                                                 ; +0x124, 0x3c4ae4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x126, 0x3c4ae6\nLDR             R3, [SP,#0x2C+var_18]                                  ; +0x12a, 0x3c4aea\nADDS            R7, #1                                                 ; +0x12c, 0x3c4aec\nMOV             R0, R3; this                                           ; +0x12e, 0x3c4aee\nBL              _ZN17SpriteDescription17createDescriptionEPN7cocos2d12CCDictionaryE; SpriteDescription::createDescription(cocos2d::CCDictionary *) ; +0x130, 0x3c4af0\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x134, 0x3c4af4\nLDR             R0, [SP,#0x2C+var_28]; this                            ; +0x136, 0x3c4af6\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x138, 0x3c4af8\nB               loc_3C4AAE                                             ; +0x13c, 0x3c4afc\nADDS            R6, #1                                                 ; +0x13e, 0x3c4afe\nB               loc_3C4A3A                                             ; +0x140, 0x3c4b00\nLDR             R3, [SP,#0x2C+var_20]                                  ; +0x142, 0x3c4b02\nMOV             R0, R8                                                 ; +0x144, 0x3c4b04\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x146, 0x3c4b06\nLDR             R3, [R3]                                               ; +0x148, 0x3c4b08\nCMP             R2, R3                                                 ; +0x14a, 0x3c4b0a\nBEQ             loc_3C4B24                                             ; +0x14c, 0x3c4b0c\nBLX             __stack_chk_fail                                       ; +0x14e, 0x3c4b0e\nB               loc_3C4B14                                             ; +0x152, 0x3c4b12\nMOV             R0, R4                                                 ; +0x154, 0x3c4b14\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x156, 0x3c4b16\nBL              __cxa_end_cleanup                                      ; +0x15a, 0x3c4b1a\nB               loc_3C4B14                                             ; +0x15e, 0x3c4b1e\nB               loc_3C4B14                                             ; +0x160, 0x3c4b20\nB               loc_3C4B14                                             ; +0x162, 0x3c4b22\nADD             SP, SP, #0x2C ; ','                                    ; +0x164, 0x3c4b24\nPOP.W           {R4-R11,PC}                                            ; +0x166, 0x3c4b26", "xrefs": ["CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x3c4e6a"], "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"}