{"type": "func", "start": 3034088, "end": 3034250, "name": "CCAnimateFrameCache::addSpriteFramesWithFile", "pseudocode": "// \n// CCAnimateFrameCache::addSpriteFramesWithFile from 0x2e4be8 to 0x2e4c8a (162 bytes)\n// \n// 2 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x2e781c\n// > LoadingLayer::loadAssets @ 0x30b9be\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ncocos2d::CCDictionary *CCAnimateFrameCache::addSpriteFramesWithFile(CCAnimateFrameCache *a1, const char *a2)\n{\n  cocos2d::CCDictionary *m_animateDescriptions; // r9\n  int v5; // r9\n  cocos2d::CCDictionary *v6; // r7\n  cocos2d::CCDictionary *v7; // r6\n  DS_Dictionary *v8; // r4\n  std::string v10; // [sp+8h] [bp-Ch] BYREF\n\n  m_animateDescriptions = a1->m_animateDescriptions;\n  sub_776584((int)&v10, (char *)a2);\n  v5 = cocos2d::CCDictionary::objectForKey(m_animateDescriptions, &v10);\n  sub_774008(&v10);\n  if ( v5 )\n  {\n    v6 = a1->m_animateDescriptions;\n    sub_776584((int)&v10, (char *)a2);\n    v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v6, &v10);\n    sub_774008(&v10);\n  }\n  else\n  {\n    v8 = (DS_Dictionary *)operator new(0xD8u);\n    DS_Dictionary::DS_Dictionary(v8);\n    DS_Dictionary::loadRootSubDictFromFile(v8, a2);\n    return (cocos2d::CCDictionary *)CCAnimateFrameCache::addDict(a1, v8, (char *)a2);\n  }\n  return v7;\n}", "assembly": "; \n; CCAnimateFrameCache::addSpriteFramesWithFile from 0x2e4be8 to 0x2e4c8a (162 bytes)\n; \n; 2 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x2e781c\n; > LoadingLayer::loadAssets @ 0x30b9be\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x2e4be8\nSUB             SP, SP, #0x14                                          ; +0x4, 0x2e4bec\nLDR             R5, =(__stack_chk_guard_ptr - 0x2E4BFE)                ; +0x6, 0x2e4bee\nADD             R4, SP, #0x14+var_C                                    ; +0x8, 0x2e4bf0\nLDR.W           R9, [R0,#0x3C]                                         ; +0xa, 0x2e4bf2\nADD.W           R8, SP, #0x14+var_10                                   ; +0xe, 0x2e4bf6\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x12, 0x2e4bfa\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x14, 0x2e4bfc\nMOV             R7, R0                                                 ; +0x16, 0x2e4bfe\nMOV             R2, R8                                                 ; +0x18, 0x2e4c00\nMOV             R0, R4; int                                            ; +0x1a, 0x2e4c02\nLDR             R3, [R5]                                               ; +0x1c, 0x2e4c04\nMOV             R6, R1                                                 ; +0x1e, 0x2e4c06\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x20, 0x2e4c08\nBL              sub_776584                                             ; +0x22, 0x2e4c0a\nMOV             R0, R9                                                 ; +0x26, 0x2e4c0e\nMOV             R1, R4                                                 ; +0x28, 0x2e4c10\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x2a, 0x2e4c12\nMOV             R9, R0                                                 ; +0x2e, 0x2e4c16\nMOV             R0, R4                                                 ; +0x30, 0x2e4c18\nBL              sub_774008                                             ; +0x32, 0x2e4c1a\nCMP.W           R9, #0                                                 ; +0x36, 0x2e4c1e\nBEQ             loc_2E4C42                                             ; +0x3a, 0x2e4c22\nLDR             R7, [R7,#0x3C]                                         ; +0x3c, 0x2e4c24\nMOV             R1, R6; char *                                         ; +0x3e, 0x2e4c26\nMOV             R0, R4; int                                            ; +0x40, 0x2e4c28\nMOV             R2, R8                                                 ; +0x42, 0x2e4c2a\nBL              sub_776584                                             ; +0x44, 0x2e4c2c\nMOV             R1, R4                                                 ; +0x48, 0x2e4c30\nMOV             R0, R7                                                 ; +0x4a, 0x2e4c32\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x4c, 0x2e4c34\nMOV             R6, R0                                                 ; +0x50, 0x2e4c38\nMOV             R0, R4                                                 ; +0x52, 0x2e4c3a\nBL              sub_774008                                             ; +0x54, 0x2e4c3c\nB               loc_2E4C62                                             ; +0x58, 0x2e4c40\nMOVS            R0, #0xD8; unsigned int                                ; +0x5a, 0x2e4c42\nBL              _Znwj; operator new(uint)                              ; +0x5c, 0x2e4c44\nMOV             R4, R0                                                 ; +0x60, 0x2e4c48\nBL              _ZN13DS_DictionaryC1Ev; DS_Dictionary::DS_Dictionary(void) ; +0x62, 0x2e4c4a\nMOV             R1, R6; char *                                         ; +0x66, 0x2e4c4e\nMOV             R0, R4; this                                           ; +0x68, 0x2e4c50\nBL              _ZN13DS_Dictionary23loadRootSubDictFromFileEPKc; DS_Dictionary::loadRootSubDictFromFile(char const*) ; +0x6a, 0x2e4c52\nMOV             R2, R6; char *                                         ; +0x6e, 0x2e4c56\nMOV             R0, R7; this                                           ; +0x70, 0x2e4c58\nMOV             R1, R4; DS_Dictionary *                                ; +0x72, 0x2e4c5a\nBL              _ZN19CCAnimateFrameCache7addDictEP13DS_DictionaryPKc; CCAnimateFrameCache::addDict(DS_Dictionary *,char const*) ; +0x74, 0x2e4c5c\nMOV             R6, R0                                                 ; +0x78, 0x2e4c60\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x7a, 0x2e4c62\nMOV             R0, R6                                                 ; +0x7c, 0x2e4c64\nLDR             R3, [R5]                                               ; +0x7e, 0x2e4c66\nCMP             R2, R3                                                 ; +0x80, 0x2e4c68\nBEQ             loc_2E4C84                                             ; +0x82, 0x2e4c6a\nBLX             __stack_chk_fail                                       ; +0x84, 0x2e4c6c\nB               loc_2E4C72                                             ; +0x88, 0x2e4c70\nMOV             R0, R4                                                 ; +0x8a, 0x2e4c72\nBL              sub_774008                                             ; +0x8c, 0x2e4c74\nBL              __cxa_end_cleanup                                      ; +0x90, 0x2e4c78\nMOV             R0, R4; p                                              ; +0x94, 0x2e4c7c\nBL              _ZdlPv; operator delete(void *)                        ; +0x96, 0x2e4c7e\nB               loc_2E4C78                                             ; +0x9a, 0x2e4c82\nADD             SP, SP, #0x14                                          ; +0x9c, 0x2e4c84\nPOP.W           {R4-R9,PC}                                             ; +0x9e, 0x2e4c86", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x2e781c", "LoadingLayer::loadAssets @ 0x30b9be"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}