// // cocos2d::CCAnimationCache::addAnimationsWithDictionary from 0x18008a360 to 0x18008a6a7 (839 bytes) // // 3 xrefs: // > cocos2d::CCAnimationCache::addAnimationsWithFile @ 0x18008a709 // > @ 0x1801438a8 // > @ 0x1801b5a6c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=3 void __fastcall cocos2d::CCAnimationCache::addAnimationsWithDictionary( cocos2d::CCAnimationCache *this, struct cocos2d::CCDictionary *a2, const char *a3) { cocos2d::CCAnimationCache *v5; // r14 struct cocos2d::CCDictionary *v6; // rdi void *v7; // rcx __int64 v8; // rbx void *v9; // rcx cocos2d::CCString *v10; // rax int v11; // r13d void *v12; // rcx __int64 v13; // rsi void *v14; // rcx unsigned int *v15; // rsi __int64 v16; // rax cocos2d::CCString **v17; // rsi cocos2d::CCString **v18; // r15 cocos2d::CCString *v19; // r14 struct cocos2d::CCFileUtils *v20; // rbx cocos2d::CCFileUtils_vtbl *v21; // rdi std::string *CString; // rax std::string *v23; // rax const char *v24; // rbx cocos2d::CCSpriteFrameCache *v25; // rax int v26; // r13d struct cocos2d::CCDictionary *v27; // [rsp+20h] [rbp-59h] void *v29[2]; // [rsp+30h] [rbp-49h] BYREF __int64 v30; // [rsp+40h] [rbp-39h] unsigned __int64 v31; // [rsp+48h] [rbp-31h] void *Block[2]; // [rsp+50h] [rbp-29h] BYREF __int64 v33; // [rsp+60h] [rbp-19h] unsigned __int64 v34; // [rsp+68h] [rbp-11h] void *v35[2]; // [rsp+70h] [rbp-9h] BYREF __int64 v36; // [rsp+80h] [rbp+7h] unsigned __int64 v37; // [rsp+88h] [rbp+Fh] v5 = this; Block[1] = (void *)29550; v33 = 10; v34 = 15; Block[0] = (void *)0x6F6974616D696E61LL; v6 = (struct cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((__int64)a2, (unsigned __int8 *)Block); v27 = v6; if ( v34 > 0xF ) { v7 = Block[0]; if ( v34 + 1 >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v7); } v33 = 0; v34 = 15; LOBYTE(Block[0]) = 0; if ( v6 ) { v35[1] = (void *)29541; v36 = 10; v37 = 15; v35[0] = (void *)0x69747265706F7270LL; v8 = cocos2d::CCDictionary::objectForKey((__int64)a2, (unsigned __int8 *)v35); if ( v37 > 0xF ) { v9 = v35[0]; if ( v37 + 1 >= 0x1000 ) { v9 = *((void **)v35[0] - 1); if ( (unsigned __int64)((char *)v35[0] - (char *)v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v9); } v36 = 0; v37 = 15; LOBYTE(v35[0]) = 0; if ( !v8 ) goto LABEL_35; *(_OWORD *)v29 = 0; v30 = 6; v31 = 15; strcpy((char *)v29, "format"); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v8, (unsigned __int8 *)v29); v11 = cocos2d::CCString::uintValue(v10); if ( v31 > 0xF ) { v12 = v29[0]; if ( v31 + 1 >= 0x1000 ) { v12 = *((void **)v29[0] - 1); if ( (unsigned __int64)((char *)v29[0] - (char *)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v12); } v30 = 12; v31 = 15; strcpy((char *)v29, "spritesheets"); BYTE5(v29[1]) = 0; HIWORD(v29[1]) = 0; v13 = cocos2d::CCDictionary::objectForKey(v8, (unsigned __int8 *)v29); if ( v31 > 0xF ) { v14 = v29[0]; if ( v31 + 1 >= 0x1000 ) { v14 = *((void **)v29[0] - 1); if ( (unsigned __int64)((char *)v29[0] - (char *)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v14); } v30 = 0; v31 = 15; LOBYTE(v29[0]) = 0; if ( v13 ) { v15 = *(unsigned int **)(v13 + 56); v16 = *v15; if ( (_DWORD)v16 ) { v17 = *((cocos2d::CCString ***)v15 + 2); v18 = &v17[v16 - 1]; if ( v17 <= v18 ) { do { v19 = *v17; if ( !*v17 ) break; if ( a3 ) { v20 = cocos2d::CCFileUtils::sharedFileUtils(); v21 = v20->__vftable; CString = cocos2d::CCString::getCString(v19); v23 = (std::string *)((__int64 (__fastcall *)(struct cocos2d::CCFileUtils *, std::string *, const char *))v21->getFileData)( v20, CString, a3); } else { v23 = cocos2d::CCString::getCString(*v17); } v24 = (const char *)v23; v25 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v25, v24); ++v17; } while ( v17 <= v18 ); v6 = v27; v5 = this; } } } v26 = v11 - 1; if ( v26 ) { if ( v26 == 1 ) cocos2d::CCAnimationCache::parseVersion2(v5, v6); } else { LABEL_35: cocos2d::CCAnimationCache::parseVersion1(v5, v6); } } }