// // CheckpointGameObject::updateSyncedAnimation from 0x10039000c to 0x100390388 (892 bytes) // // 1 xrefs: // > @ 0x100802230 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall CheckpointGameObject::updateSyncedAnimation(CheckpointGameObject *a1, float a2, int a3) { float v5; // s9 __n128 v6; // q1 __n128 v7; // q0 cocos2d::CCNode *(__cdecl *getChildByTag)(cocos2d::CCNode *__hidden, int); // x8 __int64 v9; // x20 __int64 v10; // x21 float v11; // s1 float v12; // s0 __n128 v13; // q1 __n128 v14; // q0 __n128 v15; // q0 __int64 v16; // x20 float v17; // s0 __n128 v18; // q1 __n128 v19; // q0 double v20; // d0 __int64 v21; // x20 float v22; // s0 __n128 v23; // q1 __n128 v24; // q0 double v25; // d0 __int64 v26; // x21 float v27; // s0 __n128 v28; // q1 __n128 v29; // q0 double v30; // d0 __int64 v31; // x21 __int64 v32; // x0 __int64 v33; // x0 __int64 v34; // x21 __int64 v35; // x0 __int64 v36; // x1 __n128 v37; // q0 __int64 v38; // x21 __int64 v39; // x0 __int64 v40; // x0 float32x2_t v41; // [xsp+8h] [xbp-58h] BYREF float32x2_t v42; // [xsp+10h] [xbp-50h] BYREF float32x2_t v43; // [xsp+18h] [xbp-48h] BYREF v5 = *(float *)((__int64 (__fastcall *)(CheckpointGameObject *, _QWORD))a1->getContentSize)(a1, *(_QWORD *)&a3) * 0.5; v6.n128_f32[0] = *(float *)(((__int64 (__fastcall *)(CheckpointGameObject *))a1->getContentSize)(a1) + 4) * 0.5; v7.n128_f32[0] = v5; sub_100022980(v7, v6, &v43); getChildByTag = a1->getChildByTag; if ( a1->m_checkpointActivated ) { v9 = 1128; v10 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))getChildByTag)(a1, 1128); v11 = a2 - (float)(floorf(a2 / 3.0) * 3.0); v12 = 3.0 - v11; if ( v11 <= 1.5 ) v12 = v11; v13.n128_f32[0] = (float)(GameToolbox::getEasedValue(v12 / 1.5, 1, 2.0) * 5.0) + 0.0; v14.n128_u32[0] = 0; sub_100022980(v14, v13, &v41); v15.n128_u64[0] = (unsigned __int64)sub_1000229DC(&v43, &v41, &v42); (*(void (__fastcall **)(__int64, float32x2_t *, __n128))(*(_QWORD *)v10 + 184LL))(v10, &v42, v15); } else { v16 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))getChildByTag)(a1, 1125); v17 = a2 - (float)(floorf(a2 / 4.5) * 4.5); if ( v17 > 2.25 ) v17 = 4.5 - v17; v18.n128_f32[0] = GameToolbox::getEasedValue(v17 / 2.25, 1, 1.8) * 4.5; v19.n128_u32[0] = -1.0; sub_100022980(v19, v18, &v41); *(float32x2_t *)&v20 = sub_1000229DC(&v43, &v41, &v42); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v16 + 184LL))(v16, &v42, v20); v21 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1126); v22 = a2 - (float)(floorf(a2 / 3.3) * 3.3); if ( v22 > 1.65 ) v22 = 3.3 - v22; v23.n128_f32[0] = GameToolbox::getEasedValue(v22 / 1.65, 1, 1.8) * 3.3; v24.n128_u32[0] = 0.5; sub_100022980(v24, v23, &v41); *(float32x2_t *)&v25 = sub_1000229DC(&v43, &v41, &v42); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v21 + 184LL))(v21, &v42, v25); v9 = 1127; v26 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1127); v27 = a2 - (float)(floorf(a2 / 3.0) * 3.0); if ( v27 > 1.5 ) v27 = 3.0 - v27; v28.n128_f32[0] = (float)(GameToolbox::getEasedValue(v27 / 1.5, 1, 1.8) * 3.0) + -1.0; v29.n128_u32[0] = 0.5; sub_100022980(v29, v28, &v41); *(float32x2_t *)&v30 = sub_1000229DC(&v43, &v41, &v42); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v26 + 184LL))(v26, &v42, v30); v31 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_colorSprite->getChildByTag)( a1->m_colorSprite, 1125); v32 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1125); v33 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL))(v32); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v31 + 184LL))(v31, v33); v34 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_colorSprite->getChildByTag)( a1->m_colorSprite, 1126); v35 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, 1126); v36 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 192LL))(v35); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v34 + 184LL))(v34, v36, v37); } v38 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_colorSprite->getChildByTag)(a1->m_colorSprite, v9); v39 = ((__int64 (__fastcall *)(CheckpointGameObject *, __int64))a1->getChildByTag)(a1, v9); v40 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v39 + 192LL))(v39); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 184LL))(v38, v40); }