{"type": "func", "start": 4296738184, "end": 4296738368, "name": "CCAnimateFrameCache::addSpriteFramesWithFile", "pseudocode": "// \n// CCAnimateFrameCache::addSpriteFramesWithFile from 0x1001b0588 to 0x1001b0640 (184 bytes)\n// \n// 2 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x10007e694\n// > LoadingLayer::loadAssets @ 0x1001d6dbc\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 *__fastcall CCAnimateFrameCache::addSpriteFramesWithFile(CCAnimateFrameCache *a1, const char *a2)\n{\n  cocos2d::CCDictionary *m_animateDescriptions; // x21\n  __int64 v5; // x0\n  __int64 v6; // x21\n  cocos2d::CCDictionary *v7; // x20\n  cocos2d::CCDictionary *v8; // x21\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v11; // [xsp+1Fh] [xbp-21h]\n\n  m_animateDescriptions = a1->m_animateDescriptions;\n  sub_100009900(__p, (char *)a2);\n  v5 = cocos2d::CCDictionary::objectForKey_1(m_animateDescriptions, __p);\n  v6 = v5;\n  if ( (v11 & 0x80000000) == 0 )\n  {\n    if ( v5 )\n      goto LABEL_3;\nLABEL_6:\n    v8 = cocos2d::CCDictionary::createWithContentsOfFile(a2);\n    CCAnimateFrameCache::addDict(a1, v8, a2);\n    return v8;\n  }\n  operator delete(__p[0]);\n  if ( !v6 )\n    goto LABEL_6;\nLABEL_3:\n  v7 = a1->m_animateDescriptions;\n  sub_100009900(__p, (char *)a2);\n  v8 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey_1(v7, __p);\n  if ( v11 < 0 )\n    operator delete(__p[0]);\n  return v8;\n}", "assembly": "; \n; CCAnimateFrameCache::addSpriteFramesWithFile from 0x1001b0588 to 0x1001b0640 (184 bytes)\n; \n; 2 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x10007e694\n; > LoadingLayer::loadAssets @ 0x1001d6dbc\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001b0588\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1001b058c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1001b0590\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1001b0594\nADD             X29, SP, #0x40                                         ; +0x10, 0x1001b0598\nMOV             X19, X1                                                ; +0x14, 0x1001b059c\nMOV             X20, X0                                                ; +0x18, 0x1001b05a0\nLDR             X21, [X0,#0x48]                                        ; +0x1c, 0x1001b05a4\nADD             X0, SP, #0x40+__p; int                                 ; +0x20, 0x1001b05a8\nBL              sub_100009900                                          ; +0x24, 0x1001b05ac\nADD             X1, SP, #0x40+__p                                      ; +0x28, 0x1001b05b0\nMOV             X0, X21                                                ; +0x2c, 0x1001b05b4\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x30, 0x1001b05b8\nMOV             X21, X0                                                ; +0x34, 0x1001b05bc\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x38, 0x1001b05c0\nTBNZ            W8, #0x1F, loc_1001B0600                               ; +0x3c, 0x1001b05c4\nCBZ             X21, loc_1001B060C                                     ; +0x40, 0x1001b05c8\nLDR             X20, [X20,#0x48]                                       ; +0x44, 0x1001b05cc\nADD             X0, SP, #0x40+__p; int                                 ; +0x48, 0x1001b05d0\nMOV             X1, X19; __s                                           ; +0x4c, 0x1001b05d4\nBL              sub_100009900                                          ; +0x50, 0x1001b05d8\nADD             X1, SP, #0x40+__p                                      ; +0x54, 0x1001b05dc\nMOV             X0, X20                                                ; +0x58, 0x1001b05e0\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x5c, 0x1001b05e4\nMOV             X21, X0                                                ; +0x60, 0x1001b05e8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x64, 0x1001b05ec\nTBZ             W8, #0x1F, loc_1001B0628                               ; +0x68, 0x1001b05f0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x6c, 0x1001b05f4\nBL              __ZdlPv; operator delete(void *)                       ; +0x70, 0x1001b05f8\nB               loc_1001B0628                                          ; +0x74, 0x1001b05fc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x78, 0x1001b0600\nBL              __ZdlPv; operator delete(void *)                       ; +0x7c, 0x1001b0604\nCBNZ            X21, loc_1001B05CC                                     ; +0x80, 0x1001b0608\nMOV             X0, X19                                                ; +0x84, 0x1001b060c\nBL              cocos2d__CCDictionary__createWithContentsOfFile        ; +0x88, 0x1001b0610\nMOV             X21, X0                                                ; +0x8c, 0x1001b0614\nMOV             X0, X20; int                                           ; +0x90, 0x1001b0618\nMOV             X1, X21; int                                           ; +0x94, 0x1001b061c\nMOV             X2, X19; __s                                           ; +0x98, 0x1001b0620\nBL              CCAnimateFrameCache__addDict                           ; +0x9c, 0x1001b0624\nMOV             X0, X21                                                ; +0xa0, 0x1001b0628\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x1001b062c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x1001b0630\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x1001b0634\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb0, 0x1001b0638\nRET                                                                    ; +0xb4, 0x1001b063c", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x10007e694", "LoadingLayer::loadAssets @ 0x1001d6dbc"], "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"}