// // GJBaseGameLayer::refreshKeyframeAnims from 0x1000f9c30 to 0x1000f9e12 (482 bytes) // // 2 xrefs: // > LevelEditorLayer::init @ 0x1000aaf8c // > GJBaseGameLayer::updateSpecialGroupData @ 0x1000f36f1 // // 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 12:21:18 +0000 // __int64 __fastcall GJBaseGameLayer::refreshKeyframeAnims(__int64 a1, __int64 a2) { __int64 v3; // rdi __int64 v4; // rax unsigned int *v5; // rax __int64 *v6; // r12 unsigned __int64 v7; // r13 __int64 v8; // r15 __int64 v9; // rax __int64 v10; // r14 __int64 v11; // r15 __int64 result; // rax unsigned int v13; // r12d _QWORD *v14; // r13 unsigned int v15; // r14d __int64 v16; // rax __int64 v17; // [rsp+0h] [rbp-30h] v3 = *(_QWORD *)(a1 + 13272); cocos2d::CCDictionary::removeAllObjects(v3); *(_DWORD *)(a1 + 13280) = 0; v17 = cocos2d::CCDictionary::create(v3, a2); v4 = *(_QWORD *)(a1 + 3280); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); if ( *v5 ) { v6 = *((__int64 **)v5 + 2); v7 = (unsigned __int64)&v6[*v5 - 1]; do { v8 = *v6; if ( !*v6 ) break; if ( *(_DWORD *)(v8 + 1028) == 3032 ) { v9 = cocos2d::CCDictionary::objectForKey_1(v17); if ( !v9 ) { v10 = sub_1007FE900(v17); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 72LL))(v10, *(unsigned int *)(v8 + 1856)); cocos2d::CCDictionary::setObject_1(v17, v10, *(int *)(v8 + 1856)); v9 = v10; } sub_1007FEBF0(v9, v8); } ++v6; } while ( (unsigned __int64)v6 <= v7 ); } } v11 = cocos2d::CCDictionary::allKeys(v17); qsort( *(void **)(*(_QWORD *)(v11 + 56) + 16LL), **(unsigned int **)(v11 + 56), 8u, (int (__cdecl *)(const void *, const void *))sub_1000E9F30); result = sub_1007FEF90(v11); if ( (_DWORD)result ) { v13 = 0; do { sub_1007FEFE0(v11, v13); v14 = (_QWORD *)cocos2d::CCDictionary::objectForKey_1(v17); qsort( *(void **)(v14[7] + 16LL), *(unsigned int *)v14[7], 8u, (int (__cdecl *)(const void *, const void *))sub_1000E9F10); (*(void (__fastcall **)(_QWORD *, _QWORD))(*v14 + 72LL))(v14, *(unsigned int *)(a1 + 13280)); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 13272), v14, *(int *)(a1 + 13280)); if ( (unsigned int)sub_1007FEF90(v14) ) { v15 = 0; do { v16 = sub_1007FEFE0(v14, v15); *(_DWORD *)(v16 + 1856) = *(_DWORD *)(a1 + 13280); *(_DWORD *)(v16 + 1860) = v15++; } while ( v15 < (unsigned int)sub_1007FEF90(v14) ); } ++*(_DWORD *)(a1 + 13280); ++v13; result = sub_1007FEF90(v11); } while ( v13 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source