// // CCAnimateFrameCache::addSpriteFramesWithFile from 0x140045080 to 0x14004523a (442 bytes) // // 3 xrefs: // > CCPartAnimSprite::initWithAnimDesc @ 0x14004970d // > LoadingLayer::loadAssets @ 0x140469edb // > @ 0x14090f80c // // 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:25:31 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall CCAnimateFrameCache::addSpriteFramesWithFile(__int64 a1, _BYTE *a2) { size_t v4; // rbx size_t v5; // r8 __int64 v6; // rsi void *v7; // r8 __int64 v8; // rbx void *v9; // r8 DS_Dictionary *v11; // rbx DS_Dictionary *v12; // [rsp+30h] [rbp-48h] void *Block[2]; // [rsp+38h] [rbp-40h] BYREF __int64 v14; // [rsp+48h] [rbp-30h] unsigned __int64 v15; // [rsp+50h] [rbp-28h] *(_OWORD *)Block = 0; v14 = 0; v15 = 0; v4 = -1; v5 = -1; do ++v5; while ( a2[v5] ); sub_14003D230(Block, a2, v5); v6 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 72), Block); if ( v15 > 0xF ) { v7 = Block[0]; if ( v15 + 1 >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v7); } if ( v6 ) { *(_OWORD *)Block = 0; v14 = 0; v15 = 0; do ++v4; while ( a2[v4] ); sub_14003D230(Block, a2, v4); v8 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 72), Block); if ( v15 > 0xF ) { v9 = Block[0]; if ( v15 + 1 >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } return v8; } else { v12 = (DS_Dictionary *)operator new(0xF0u); v11 = DS_Dictionary::DS_Dictionary(v12); DS_Dictionary::loadRootSubDictFromFile(v11, a2); return CCAnimateFrameCache::addDict(a1, v11, a2); } }