// // GJBaseGameLayer::playKeyframeAnimation from 0x9c396c to 0x9c3d00 (916 bytes) // // 2 xrefs: // > EffectGameObject::triggerObject @ 0x8982bc // > @ 0x1001c8 // // This function is hookable on this platform (idp: arm, 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:58:31 +0000 // __int64 __fastcall GJBaseGameLayer::playKeyframeAnimation(GJEffectManager **a1, _DWORD *a2) { cocos2d::CCObject *Group; // x0 unsigned int *v5; // x1 void *v6; // x0 _QWORD *v8; // x19 __int64 v9; // x0 char *v10; // x21 _DWORD *v11; // x20 _QWORD *v12; // x0 _QWORD *v13; // x19 unsigned __int64 v14; // x23 unsigned __int64 v15; // x24 __int64 *v16; // x0 unsigned __int64 v17; // x1 unsigned __int64 v18; // x1 float v19; // s0 _BOOL8 v20; // x2 __int64 v21; // x0 unsigned __int64 v22; // x2 unsigned __int64 v23; // x1 void **v24; // x0 cocos2d::CCArray *v25; // x23 int v26; // w1 unsigned __int64 v27; // x2 unsigned __int64 v28; // x23 unsigned __int64 v29; // [xsp+78h] [xbp+78h] int v30; // [xsp+84h] [xbp+84h] BYREF void *v31; // [xsp+88h] [xbp+88h] BYREF void *v32; // [xsp+A0h] [xbp+A0h] BYREF unsigned __int64 v33; // [xsp+A8h] [xbp+A8h] void *v34; // [xsp+B0h] [xbp+B0h] BYREF __int64 v35; // [xsp+B8h] [xbp+B8h] float v36; // [xsp+C0h] [xbp+C0h] Group = GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, a2[413]); v32 = nullptr; v33 = 0; v34 = nullptr; v35 = 0; v36 = 1.0; if ( !Group ) goto LABEL_3; v5 = *((unsigned int **)Group + 7); if ( !*v5 ) goto LABEL_3; v8 = *((_QWORD **)v5 + 2); v9 = 8LL * *v5 - 8; v10 = (char *)v8 + v9; if ( v8 > (_QWORD *)((char *)v8 + v9) ) goto LABEL_3; v11 = (_DWORD *)*v8; if ( !*v8 ) goto LABEL_3; do { if ( v11[257] != 3032 ) goto LABEL_9; v30 = v11[464]; if ( std::__hash_table,std::equal_to,std::allocator>::find(&v32, &v30) ) goto LABEL_9; v14 = v33; v29 = v30; if ( v33 ) { v15 = (v33 - 1) & v30; if ( ((v33 - 1) & v33) != 0 ) v15 = v30 % v33; v16 = *((__int64 **)v32 + v15); if ( v16 ) { while ( 1 ) { v16 = (__int64 *)*v16; if ( !v16 ) break; v17 = v16[1]; v18 = ((v33 - 1) & v33) != 0 ? v17 % v33 : (v33 - 1) & v17; if ( v15 != v18 ) break; if ( v30 == *((_DWORD *)v16 + 4) ) goto LABEL_33; } } } else { v15 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v32, v30, &v30, (__int64)&v31); v19 = (float)(unsigned __int64)(v35 + 1); if ( v19 > (float)((float)v14 * v36) ) { v20 = 1; v21 = 2 * v14; if ( v14 > 2 ) v20 = ((v14 - 1) & v14) != 0; } else { if ( v14 ) goto LABEL_30; v20 = 1; v21 = 0; } v22 = v20 + v21; v23 = vcvtps_u32_f32(v19 / v36); if ( v23 < v22 ) v23 = v22; std::__hash_table,std::equal_to,std::allocator>::rehash((unsigned __int64)&v32, v23); v14 = v33; if ( ((v14 - 1) & v14) != 0 ) v15 = v29 % v33; else v15 = (v33 - 1) & v29; LABEL_30: v24 = *((void ***)v32 + v15); if ( v24 ) { *(_QWORD *)v31 = *v24; *v24 = v31; } else { *(_QWORD *)v31 = v34; v34 = v31; *((_QWORD *)v32 + v15) = &v34; if ( *(_QWORD *)v31 ) { v27 = *(_QWORD *)(*(_QWORD *)v31 + 8LL); if ( ((v14 - 1) & v14) != 0 ) v28 = v27 % v14; else v28 = (v14 - 1) & v27; *((_QWORD *)v32 + v28) = v31; } } v29 = v30; ++v35; LABEL_33: v25 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1[1659], v29); GJBaseGameLayer::tryGetMainObject(a1, a2[367]); v26 = a2[366]; if ( !v26 ) v26 = v11[366]; GJEffectManager::createKeyframeCommand(a1[269], v26, v25); LABEL_9: if ( v10 < (char *)++v8 ) break; v11 = (_DWORD *)*v8; } while ( *v8 ); v12 = v34; if ( v34 ) { do { v13 = (_QWORD *)*v12; operator delete(v12); v12 = v13; } while ( v13 ); } LABEL_3: v6 = v32; v32 = nullptr; if ( v6 ) operator delete(v6); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source