// // CCAnimateFrameCache::addSpriteFramesWithFile from 0x140041550 to 0x1400416df (399 bytes) // // 4 xrefs: // > CCPartAnimSprite::initWithAnimDesc @ 0x140045a1e // > LoadingLayer::loadAssets @ 0x14032f2ea // > @ 0x1406c42fc // > @ 0x1406c4308 // // 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=2 cocos2d::CCDictionary *CCAnimateFrameCache::addSpriteFramesWithFile(CCAnimateFrameCache *a1, const char *a2) { size_t v4; // rbx size_t v5; // r8 __int64 v6; // rsi void *v7; // rcx cocos2d::CCDictionary *v8; // rbx void *v9; // rcx DS_Dictionary *v11; // rbx DS_Dictionary *v12; // [rsp+20h] [rbp-48h] void *Block[2]; // [rsp+28h] [rbp-40h] BYREF __int64 v14; // [rsp+38h] [rbp-30h] unsigned __int64 v15; // [rsp+40h] [rbp-28h] *(_OWORD *)Block = 0; v14 = 0; v15 = 0; v4 = -1; v5 = -1; do ++v5; while ( a2[v5] ); sub_14003A930(Block, a2, v5); v6 = cocos2d::CCDictionary::objectForKey(a1->m_animateDescriptions, 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 ) invalid_parameter_noinfo_noreturn(); } j_j_free(v7); } if ( v6 ) { *(_OWORD *)Block = 0; v14 = 0; v15 = 0; do ++v4; while ( a2[v4] ); sub_14003A930(Block, a2, v4); v8 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(a1->m_animateDescriptions, 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 ) invalid_parameter_noinfo_noreturn(); } 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); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source