{"type": "func", "start": 3950168, "end": 3950354, "name": "CCAnimateFrameCache::addSpriteFramesWithFile", "pseudocode": "// \n// CCAnimateFrameCache::addSpriteFramesWithFile from 0x3c4658 to 0x3c4712 (186 bytes)\n// \n// 2 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x3c7a74\n// > LoadingLayer::loadAssets @ 0x3fbe6a\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::CCObject *__fastcall CCAnimateFrameCache::addSpriteFramesWithFile(\n        CCAnimateFrameCache *this,\n        const char *a2,\n        int a3,\n        int a4)\n{\n  int v6; // r8\n  size_t v7; // r0\n  int v8; // r8\n  size_t v9; // r0\n  int v10; // r7\n  int v11; // r6\n  DS_Dictionary *v12; // r4\n  CCAnimateFrameCache *v14; // [sp+0h] [bp-10h] BYREF\n  const char *v15; // [sp+4h] [bp-Ch]\n  int v16; // [sp+8h] [bp-8h]\n  int v17; // [sp+Ch] [bp-4h]\n\n  v14 = this;\n  v15 = a2;\n  v16 = a3;\n  v17 = a4;\n  v6 = *((_DWORD *)this + 15);\n  v14 = nullptr;\n  v15 = nullptr;\n  v16 = 0;\n  v7 = strlen(a2);\n  std::string::__init((int *)&v14, a2, v7);\n  v8 = cocos2d::CCDictionary::objectForKey(v6, &v14);\n  std::string::~string((int)&v14);\n  if ( v8 )\n  {\n    v14 = nullptr;\n    v15 = nullptr;\n    v16 = 0;\n    v9 = strlen(a2);\n    v10 = *((_DWORD *)this + 15);\n    std::string::__init((int *)&v14, a2, v9);\n    v11 = cocos2d::CCDictionary::objectForKey(v10, &v14);\n    std::string::~string((int)&v14);\n  }\n  else\n  {\n    v12 = (DS_Dictionary *)operator new(0xD8u);\n    DS_Dictionary::DS_Dictionary(v12);\n    DS_Dictionary::loadRootSubDictFromFile(v12, a2);\n    return CCAnimateFrameCache::addDict(this, v12, a2);\n  }\n  return (cocos2d::CCObject *)v11;\n}", "assembly": "; \n; CCAnimateFrameCache::addSpriteFramesWithFile from 0x3c4658 to 0x3c4712 (186 bytes)\n; \n; 2 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x3c7a74\n; > LoadingLayer::loadAssets @ 0x3fbe6a\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          {R0-R8,LR}                                             ; +0x0, 0x3c4658\nMOV             R7, R0                                                 ; +0x4, 0x3c465c\nLDR             R5, =(__stack_chk_guard_ptr - 0x3C466C)                ; +0x6, 0x3c465e\nMOV             R6, R1                                                 ; +0x8, 0x3c4660\nLDR.W           R8, [R0,#0x3C]                                         ; +0xa, 0x3c4662\nMOV             R0, R1; char *                                         ; +0xe, 0x3c4666\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3c4668\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x3c466a\nMOV             R4, SP                                                 ; +0x14, 0x3c466c\nLDR             R3, [R5]                                               ; +0x16, 0x3c466e\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x18, 0x3c4670\nMOVS            R3, #0                                                 ; +0x1a, 0x3c4672\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x1c, 0x3c4674\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x1e, 0x3c4676\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x20, 0x3c4678\nBLX             strlen                                                 ; +0x22, 0x3c467a\nMOV             R1, R6                                                 ; +0x26, 0x3c467e\nMOV             R2, R0                                                 ; +0x28, 0x3c4680\nMOV             R0, SP                                                 ; +0x2a, 0x3c4682\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x2c, 0x3c4684\nMOV             R0, R8                                                 ; +0x30, 0x3c4688\nMOV             R1, SP                                                 ; +0x32, 0x3c468a\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x34, 0x3c468c\nMOV             R8, R0                                                 ; +0x38, 0x3c4690\nMOV             R0, SP                                                 ; +0x3a, 0x3c4692\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x3c, 0x3c4694\nCMP.W           R8, #0                                                 ; +0x40, 0x3c4698\nBEQ             loc_3C46CA                                             ; +0x44, 0x3c469c\nMOV             R0, R6; char *                                         ; +0x46, 0x3c469e\nMOVS            R3, #0                                                 ; +0x48, 0x3c46a0\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x4a, 0x3c46a2\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x4c, 0x3c46a4\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x4e, 0x3c46a6\nBLX             strlen                                                 ; +0x50, 0x3c46a8\nLDR             R7, [R7,#0x3C]                                         ; +0x54, 0x3c46ac\nMOV             R1, R6                                                 ; +0x56, 0x3c46ae\nMOV             R2, R0                                                 ; +0x58, 0x3c46b0\nMOV             R0, SP                                                 ; +0x5a, 0x3c46b2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x5c, 0x3c46b4\nMOV             R0, R7                                                 ; +0x60, 0x3c46b8\nMOV             R1, SP                                                 ; +0x62, 0x3c46ba\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x64, 0x3c46bc\nMOV             R6, R0                                                 ; +0x68, 0x3c46c0\nMOV             R0, SP                                                 ; +0x6a, 0x3c46c2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6c, 0x3c46c4\nB               loc_3C46EA                                             ; +0x70, 0x3c46c8\nMOVS            R0, #0xD8; unsigned int                                ; +0x72, 0x3c46ca\nBL              _Znwj; operator new(uint)                              ; +0x74, 0x3c46cc\nMOV             R4, R0                                                 ; +0x78, 0x3c46d0\nBL              _ZN13DS_DictionaryC1Ev; DS_Dictionary::DS_Dictionary(void) ; +0x7a, 0x3c46d2\nMOV             R1, R6; char *                                         ; +0x7e, 0x3c46d6\nMOV             R0, R4; this                                           ; +0x80, 0x3c46d8\nBL              _ZN13DS_Dictionary23loadRootSubDictFromFileEPKc; DS_Dictionary::loadRootSubDictFromFile(char const*) ; +0x82, 0x3c46da\nMOV             R2, R6; char *                                         ; +0x86, 0x3c46de\nMOV             R0, R7; this                                           ; +0x88, 0x3c46e0\nMOV             R1, R4; DS_Dictionary *                                ; +0x8a, 0x3c46e2\nBL              _ZN19CCAnimateFrameCache7addDictEP13DS_DictionaryPKc; CCAnimateFrameCache::addDict(DS_Dictionary *,char const*) ; +0x8c, 0x3c46e4\nMOV             R6, R0                                                 ; +0x90, 0x3c46e8\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x92, 0x3c46ea\nMOV             R0, R6                                                 ; +0x94, 0x3c46ec\nLDR             R3, [R5]                                               ; +0x96, 0x3c46ee\nCMP             R2, R3                                                 ; +0x98, 0x3c46f0\nBEQ             loc_3C470C                                             ; +0x9a, 0x3c46f2\nBLX             __stack_chk_fail                                       ; +0x9c, 0x3c46f4\nB               loc_3C46FA                                             ; +0xa0, 0x3c46f8\nMOV             R0, R4                                                 ; +0xa2, 0x3c46fa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa4, 0x3c46fc\nBL              __cxa_end_cleanup                                      ; +0xa8, 0x3c4700\nMOV             R0, R4; void *                                         ; +0xac, 0x3c4704\nBL              _ZdlPv; operator delete(void *)                        ; +0xae, 0x3c4706\nB               loc_3C4700                                             ; +0xb2, 0x3c470a\nADD             SP, SP, #0x10                                          ; +0xb4, 0x3c470c\nPOP.W           {R4-R8,PC}                                             ; +0xb6, 0x3c470e", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x3c7a74", "LoadingLayer::loadAssets @ 0x3fbe6a"], "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"}