// // EasingSelectPopup::update from 0xcbae30 to 0xcbb160 (816 bytes) // // 2 xrefs: // > @ 0x5bfa8 // > @ 0x14fa618 // // 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 13:06:14 +0000 // __int64 __fastcall EasingSelectPopup::update(__int64 this, float a2) { __int64 v2; // x20 float v4; // s15 float v5; // s13 float v6; // s11 float v7; // s8 float v8; // s0 int v9; // w23 unsigned int v10; // w19 __int64 v11; // x22 __int64 v12; // x21 float v13; // s14 float v14; // s9 long double v15; // q0 float v16; // s9 float v17; // s0 float v18; // s1 GameToolbox *v19; // x0 float v20; // s0 long double v21; // q0 float v22; // s0 float EasedValue; // s0 float v24; // [xsp+8Ch] [xbp+8Ch] v2 = this; if ( !*(_QWORD *)(this + 1048) || !*(_QWORD *)(this + 1072) ) return this; v4 = 0.1; if ( (*(float (__fastcall **)(__int64, _QWORD))(*(_QWORD *)this + 1464LL))(this, *(unsigned int *)(this + 1024)) > 0.1 ) v4 = (*(float (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1464LL))(v2, *(unsigned int *)(v2 + 1024)); v5 = (*(float (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1464LL))(v2, *(unsigned int *)(v2 + 1032)); if ( v5 < 0.1 ) v5 = 2.0; v6 = v4 + 0.5; v7 = a2 + *(float *)(v2 + 1040); v8 = (float)(v4 + 0.5) + 0.45; if ( v8 <= v7 ) { v7 = v7 - v8; *(float *)(v2 + 1040) = v7; if ( v7 >= 0.0 ) goto LABEL_9; } else { *(float *)(v2 + 1040) = v7; if ( v7 >= 0.0 ) goto LABEL_9; } v7 = 0.0; *(_DWORD *)(v2 + 1040) = 0; LABEL_9: this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 1048)); v9 = this; if ( (int)this > 0 ) { v10 = 0; while ( 1 ) { v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 1048), v10); this = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 1072), v10); v12 = this; if ( !this || !v11 ) goto LABEL_11; v13 = v5; if ( !GameToolbox::isRateEasing((GameToolbox *)v10) ) v13 = 2.0; v14 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 328LL))(v11); v16 = (float)((float)(v14 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v11 + 136LL))(v11)) * 0.5) + -30.0; if ( v7 < 0.3 ) { (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 216LL))(v12, v16); this = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 912LL))( v12, (unsigned int)(float)((float)(v7 / 0.3) * 255.0)); LABEL_11: if ( v9 == ++v10 ) return this; } else { if ( v7 < 0.5 ) { *(float *)&v15 = v16; (*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v12 + 216LL))(v12, v15); goto LABEL_24; } if ( v7 < v6 ) { v17 = (float)(v7 - 0.5) / v4; if ( v17 <= 0.0 ) { v17 = 0.0; } else if ( v17 >= 1.0 ) { v17 = 1.0; } v18 = v13; v19 = (GameToolbox *)v10; goto LABEL_23; } if ( v7 >= (float)(v6 + 0.05) ) { v22 = (float)((float)((float)(v7 - 0.5) - v4) - 0.05) / 0.4; if ( v22 < 1.0 ) v24 = 1.0 - v22; else v24 = 0.0; EasedValue = GameToolbox::getEasedValue((GameToolbox *)v10, 1.0, v13); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 216LL))( v12, v16 + (float)((float)(EasedValue + EasedValue) * 30.0)); this = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 912LL))( v12, (unsigned int)(float)(v24 * 255.0)); goto LABEL_11; } v18 = v13; v19 = (GameToolbox *)v10; v17 = 1.0; LABEL_23: v20 = GameToolbox::getEasedValue(v19, v17, v18); *(float *)&v21 = v16 + (float)((float)(v20 + v20) * 30.0); (*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v12 + 216LL))(v12, v21); LABEL_24: ++v10; this = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 912LL))(v12, 0xFFFFFFFFLL); if ( v9 == v10 ) return this; } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source