// // GJBaseGameLayer::refreshKeyframeAnims from 0x14033c9b0 to 0x14033cb8f (479 bytes) // // 3 xrefs: // > GJBaseGameLayer::updateSpecialGroupData @ 0x140314100 // > LevelEditorLayer::init @ 0x1403eee12 // > @ 0x14091fc04 // // 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:30:37 +0000 // unsigned int __fastcall GJBaseGameLayer::refreshKeyframeAnims(__int64 a1) { __int64 v2; // rcx __int64 v3; // rax __int64 v4; // r14 cocos2d::CCDictionary *v5; // r15 unsigned int *v6; // r14 __int64 v7; // rax struct cocos2d::CCObject **v8; // r14 struct cocos2d::CCObject **i; // rbp struct cocos2d::CCObject *v10; // rbx __int64 v11; // rcx struct cocos2d::CCObject *v12; // rdi struct cocos2d::CCArray *v13; // r14 unsigned int v14; // ebp unsigned int result; // eax struct cocos2d::CCObject *v16; // rax struct cocos2d::CCObject *v17; // rdi unsigned int j; // ebx struct cocos2d::CCObject *v19; // rax cocos2d::CCDictionary::removeAllObjects(*(cocos2d::CCDictionary **)(a1 + 13872)); *(_DWORD *)(a1 + 13880) = 0; v3 = cocos2d::CCDictionary::create(v2); v4 = *(_QWORD *)(a1 + 3536); v5 = (cocos2d::CCDictionary *)v3; if ( v4 ) { v6 = *(unsigned int **)(v4 + 56); v7 = *v6; if ( (_DWORD)v7 ) { v8 = *((struct cocos2d::CCObject ***)v6 + 2); for ( i = &v8[v7 - 1]; v8 <= i; ++v8 ) { v10 = *v8; if ( !*v8 ) break; if ( *((_DWORD *)v10 + 259) == 3032 ) { v12 = cocos2d::CCDictionary::objectForKey(v5, *((int *)v10 + 468)); if ( !v12 ) { v12 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(v11); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v12 + 64LL))( v12, *((unsigned int *)v10 + 468)); cocos2d::CCDictionary::setObject(v5, v12, *((int *)v10 + 468)); } cocos2d::CCArray::addObject(v12, v10); } } } } v13 = cocos2d::CCDictionary::allKeys(v5); qsort( *(void **)(*((_QWORD *)v13 + 7) + 16LL), **((unsigned int **)v13 + 7), 8u, (_CoreCrtNonSecureSearchSortCompareFunction)sub_14030B1D0); v14 = 0; result = cocos2d::CCArray::count(v13); if ( result ) { do { v16 = cocos2d::CCArray::objectAtIndex(v13, v14); v17 = cocos2d::CCDictionary::objectForKey(v5, *((int *)v16 + 14)); qsort( *(void **)(*((_QWORD *)v17 + 7) + 16LL), **((unsigned int **)v17 + 7), 8u, (_CoreCrtNonSecureSearchSortCompareFunction)sub_14030B1B0); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v17 + 64LL))( v17, *(unsigned int *)(a1 + 13880)); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 13872), v17, *(int *)(a1 + 13880)); for ( j = 0; j < cocos2d::CCArray::count(v17); ++j ) { v19 = cocos2d::CCArray::objectAtIndex(v17, j); *((_DWORD *)v19 + 468) = *(_DWORD *)(a1 + 13880); *((_DWORD *)v19 + 469) = j; } ++*(_DWORD *)(a1 + 13880); ++v14; result = cocos2d::CCArray::count(v13); } while ( v14 < result ); } return result; }