{"type": "func", "start": 4297348724, "end": 4297348908, "name": "CCAnimateFrameCache::addSpriteFramesWithFile", "pseudocode": "// \n// CCAnimateFrameCache::addSpriteFramesWithFile from 0x100245674 to 0x10024572c (184 bytes)\n// \n// 2 xrefs:\n// > sub_100086DC4 @ 0x100086e40\n// > LoadingLayer::loadAssets @ 0x10026f320\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:01:26 +0000\n// \n\n__int64 __fastcall CCAnimateFrameCache::addSpriteFramesWithFile(__int64 a1, char *a2)\n{\n  __int64 v4; // x21\n  __int64 v5; // x0\n  __int64 v6; // x21\n  __int64 v7; // x20\n  __int64 v8; // x21\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v11; // [xsp+1Fh] [xbp-21h]\n\n  v4 = *(_QWORD *)(a1 + 72);\n  sub_100009900(__p, a2);\n  v5 = cocos2d::CCDictionary::objectForKey(v4, __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    sub_10024547C(a1, v8, a2);\n    return v8;\n  }\n  operator delete(__p[0]);\n  if ( !v6 )\n    goto LABEL_6;\nLABEL_3:\n  v7 = *(_QWORD *)(a1 + 72);\n  sub_100009900(__p, a2);\n  v8 = cocos2d::CCDictionary::objectForKey(v7, __p);\n  if ( v11 < 0 )\n    operator delete(__p[0]);\n  return v8;\n}", "assembly": "; \n; CCAnimateFrameCache::addSpriteFramesWithFile from 0x100245674 to 0x10024572c (184 bytes)\n; \n; 2 xrefs:\n; > sub_100086DC4 @ 0x100086e40\n; > LoadingLayer::loadAssets @ 0x10026f320\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:01:26 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x100245674\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100245678\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10024567c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100245680\nADD             X29, SP, #0x40                                         ; +0x10, 0x100245684\nMOV             X19, X1                                                ; +0x14, 0x100245688\nMOV             X20, X0                                                ; +0x18, 0x10024568c\nLDR             X21, [X0,#0x48]                                        ; +0x1c, 0x100245690\nADD             X0, SP, #0x40+__p; int                                 ; +0x20, 0x100245694\nBL              sub_100009900                                          ; +0x24, 0x100245698\nADD             X1, SP, #0x40+__p                                      ; +0x28, 0x10024569c\nMOV             X0, X21                                                ; +0x2c, 0x1002456a0\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x30, 0x1002456a4\nMOV             X21, X0                                                ; +0x34, 0x1002456a8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x38, 0x1002456ac\nTBNZ            W8, #0x1F, loc_1002456EC                               ; +0x3c, 0x1002456b0\nCBZ             X21, loc_1002456F8                                     ; +0x40, 0x1002456b4\nLDR             X20, [X20,#0x48]                                       ; +0x44, 0x1002456b8\nADD             X0, SP, #0x40+__p; int                                 ; +0x48, 0x1002456bc\nMOV             X1, X19; __s                                           ; +0x4c, 0x1002456c0\nBL              sub_100009900                                          ; +0x50, 0x1002456c4\nADD             X1, SP, #0x40+__p                                      ; +0x54, 0x1002456c8\nMOV             X0, X20                                                ; +0x58, 0x1002456cc\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x5c, 0x1002456d0\nMOV             X21, X0                                                ; +0x60, 0x1002456d4\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x64, 0x1002456d8\nTBZ             W8, #0x1F, loc_100245714                               ; +0x68, 0x1002456dc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x6c, 0x1002456e0\nBL              __ZdlPv; operator delete(void *)                       ; +0x70, 0x1002456e4\nB               loc_100245714                                          ; +0x74, 0x1002456e8\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x78, 0x1002456ec\nBL              __ZdlPv; operator delete(void *)                       ; +0x7c, 0x1002456f0\nCBNZ            X21, loc_1002456B8                                     ; +0x80, 0x1002456f4\nMOV             X0, X19                                                ; +0x84, 0x1002456f8\nBL              cocos2d__CCDictionary__createWithContentsOfFile        ; +0x88, 0x1002456fc\nMOV             X21, X0                                                ; +0x8c, 0x100245700\nMOV             X0, X20; int                                           ; +0x90, 0x100245704\nMOV             X1, X21; int                                           ; +0x94, 0x100245708\nMOV             X2, X19; __s                                           ; +0x98, 0x10024570c\nBL              sub_10024547C                                          ; +0x9c, 0x100245710\nMOV             X0, X21                                                ; +0xa0, 0x100245714\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x100245718\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x10024571c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x100245720\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb0, 0x100245724\nRET                                                                    ; +0xb4, 0x100245728", "xrefs": ["sub_100086DC4 @ 0x100086e40", "LoadingLayer::loadAssets @ 0x10026f320"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}