// // cocos2d::CCAnimationCache::parseVersion2 from 0x18008db60 to 0x18008e26d (1805 bytes) // // 3 xrefs: // > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x18008d6bc // > @ 0x18014cf68 // > @ 0x1801bfd6c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:07 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall cocos2d::CCAnimationCache::parseVersion2( cocos2d::CCAnimationCache *this, struct cocos2d::CCDictionary *a2) { cocos2d::CCSpriteFrameCache *v3; // r14 __int64 v4; // rsi __int64 v5; // r13 __m128i si128; // xmm8 __m128i v7; // xmm7 __m128i v8; // xmm9 __m128i v9; // xmm10 __m128i v10; // xmm12 __m128i v11; // xmm13 __m128i v12; // xmm11 __int64 v13; // rbx cocos2d::CCString *v14; // r15 void *v15; // r8 cocos2d::CCString *v16; // rax void *v17; // r8 cocos2d::CCArray *v18; // rbx void *v19; // r8 unsigned int v20; // eax struct cocos2d::CCArray *v21; // r12 unsigned int *v22; // rdi __int64 v23; // rcx __int64 *v24; // rdi __int64 *v25; // r15 __int64 v26; // rbx cocos2d::CCString *v27; // rax const char *CString; // rsi void *v29; // r8 struct cocos2d::CCSpriteFrame *v30; // r14 cocos2d::CCString *v31; // rax float v32; // xmm6_4 void *v33; // rcx struct cocos2d::CCDictionary *v34; // rsi void *v35; // r8 cocos2d::CCAnimationFrame *v36; // rax cocos2d::CCAnimationFrame *v37; // rbx cocos2d::CCString *v38; // rax float v39; // xmm6_4 void *v40; // rcx cocos2d::CCAnimation *v41; // rax cocos2d::CCAnimation *v42; // rbx int v43; // eax cocos2d::CCSpriteFrameCache *v44; // rax bool v45; // [rsp+38h] [rbp-D0h] cocos2d::CCString *v46; // [rsp+40h] [rbp-C8h] __int64 v47; // [rsp+48h] [rbp-C0h] cocos2d::CCSpriteFrameCache *v48; // [rsp+50h] [rbp-B8h] __int64 v49; // [rsp+58h] [rbp-B0h] void *v50[2]; // [rsp+70h] [rbp-98h] BYREF __m128i v51; // [rsp+80h] [rbp-88h] void *Block[2]; // [rsp+90h] [rbp-78h] BYREF __m128i v53; // [rsp+A0h] [rbp-68h] v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v48 = v3; if ( a2 ) { v4 = *((_QWORD *)a2 + 7); v47 = v4; if ( v4 ) { v5 = *(_QWORD *)(v4 + 288); si128 = _mm_load_si128((const __m128i *)&xmmword_180106040); v7 = _mm_load_si128((const __m128i *)&xmmword_1800EC500); v8 = _mm_load_si128((const __m128i *)&xmmword_1800F1940); v9 = _mm_load_si128((const __m128i *)&xmmword_180106030); v10 = _mm_load_si128((const __m128i *)&xmmword_180109E30); v11 = _mm_load_si128((const __m128i *)&xmmword_180106070); v12 = _mm_load_si128((const __m128i *)&xmmword_180106010); while ( 1 ) { v13 = *(_QWORD *)(v4 + 264); v49 = v13; *(_OWORD *)Block = 0; v53 = v12; strcpy((char *)Block, "loops"); v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (__int64)Block); v46 = v14; if ( v53.m128i_i64[1] > 0xFuLL ) { v15 = Block[0]; if ( (unsigned __int64)(v53.m128i_i64[1] + 1) >= 0x1000 ) { v15 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v15); } v53 = v7; LOBYTE(Block[0]) = 0; *(_OWORD *)v50 = 0; v51 = 0; v50[0] = (void *)sub_1800E4AC0(0x20u); v51 = v11; strcpy((char *)v50[0], "restoreOriginalFrame"); v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (__int64)v50); v45 = cocos2d::CCString::boolValue(v16); if ( v51.m128i_i64[1] > 0xFuLL ) { v17 = v50[0]; if ( (unsigned __int64)(v51.m128i_i64[1] + 1) >= 0x1000 ) { v17 = *((void **)v50[0] - 1); if ( (unsigned __int64)((char *)v50[0] - (char *)v17 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v17); } *(_OWORD *)v50 = 0; v51 = v10; strcpy((char *)v50, "frames"); v18 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v13, (__int64)v50); if ( v51.m128i_i64[1] > 0xFuLL ) { v19 = v50[0]; if ( (unsigned __int64)(v51.m128i_i64[1] + 1) >= 0x1000 ) { v19 = *((void **)v50[0] - 1); if ( (unsigned __int64)((char *)v50[0] - (char *)v19 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v19); } v51 = v7; LOBYTE(v50[0]) = 0; if ( v18 ) { v20 = cocos2d::CCArray::count(v18); v21 = cocos2d::CCArray::createWithCapacity(v20); cocos2d::CCObject::retain(v21); v22 = *((unsigned int **)v18 + 7); v23 = *v22; if ( (_DWORD)v23 ) { v24 = *((__int64 **)v22 + 2); v25 = &v24[v23 - 1]; if ( v24 <= v25 ) { do { v26 = *v24; if ( !*v24 ) break; v51 = v9; v50[0] = (void *)0x7266657469727073LL; v50[1] = (void *)6647137; v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v26, (__int64)v50); CString = cocos2d::CCString::getCString(v27); if ( v51.m128i_i64[1] > 0xFuLL ) { v29 = v50[0]; if ( (unsigned __int64)(v51.m128i_i64[1] + 1) >= 0x1000 ) { v29 = *((void **)v50[0] - 1); if ( (unsigned __int64)((char *)v50[0] - (char *)v29 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v29); } v51 = v7; LOBYTE(v50[0]) = 0; v30 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, CString); if ( v30 ) { v50[1] = (void *)29556; v51 = v8; v50[0] = (void *)0x696E5579616C6564LL; v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v26, (__int64)v50); v32 = cocos2d::CCString::floatValue(v31); if ( v51.m128i_i64[1] > 0xFuLL ) { v33 = v50[0]; if ( (unsigned __int64)(v51.m128i_i64[1] + 1) >= 0x1000 ) { v33 = *((void **)v50[0] - 1); if ( (unsigned __int64)((char *)v50[0] - (char *)v33 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v33); } v51 = si128; strcpy((char *)v50, "notification"); BYTE5(v50[1]) = 0; HIWORD(v50[1]) = 0; v34 = (struct cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v26, (__int64)v50); if ( v51.m128i_i64[1] > 0xFuLL ) { v35 = v50[0]; if ( (unsigned __int64)(v51.m128i_i64[1] + 1) >= 0x1000 ) { v35 = *((void **)v50[0] - 1); if ( (unsigned __int64)((char *)v50[0] - (char *)v35 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v35); } v51 = v7; LOBYTE(v50[0]) = 0; v36 = (cocos2d::CCAnimationFrame *)sub_1800E4AC0(0x50u); if ( v36 ) v37 = cocos2d::CCAnimationFrame::CCAnimationFrame(v36); else v37 = nullptr; cocos2d::CCAnimationFrame::initWithSpriteFrame(v37, v30, v32, v34); cocos2d::CCArray::addObject(v21, v37); cocos2d::CCObject::release(v37); } ++v24; v3 = v48; } while ( v24 <= v25 ); v4 = v47; } v14 = v46; } v51 = si128; strcpy((char *)v50, "delayPerUnit"); BYTE5(v50[1]) = 0; HIWORD(v50[1]) = 0; v38 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v49, (__int64)v50); v39 = cocos2d::CCString::floatValue(v38); if ( v51.m128i_i64[1] > 0xFuLL ) { v40 = v50[0]; if ( (unsigned __int64)(v51.m128i_i64[1] + 1) >= 0x1000 ) { v40 = *((void **)v50[0] - 1); if ( (unsigned __int64)((char *)v50[0] - (char *)v40 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v40); } v41 = (cocos2d::CCAnimation *)sub_1800E4AC0(0x58u); if ( v41 ) v42 = cocos2d::CCAnimation::CCAnimation(v41); else v42 = nullptr; if ( (unsigned int)cocos2d::CCString::length(v14) ) v43 = cocos2d::CCString::uintValue(v14); else v43 = 1; cocos2d::CCAnimation::initWithAnimationFrames(v42, v21, v39, v43); cocos2d::CCObject::release(v21); *((_BYTE *)v42 + 80) = v45; v44 = cocos2d::CCAnimationCache::sharedAnimationCache(); cocos2d::CCSpriteFrameCache::addSpriteFrame(v44, v42, (char *)v4); cocos2d::CCObject::release(v42); } v4 = v5; v47 = v5; if ( !v5 ) break; v5 = *(_QWORD *)(v5 + 288); } } } }