// // EasingSelectPopup::update from 0x140176a60 to 0x140176e3c (988 bytes) // // 4 xrefs: // > @ 0x140746e68 // > @ 0x14089d514 // > @ 0x14089d558 // > @ 0x140918590 // // 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:27:33 +0000 // int __fastcall EasingSelectPopup::update(__int64 a1, float a2) { struct cocos2d::CCObject *v2; // rax float v4; // xmm13_4 double v5; // xmm0_8 float v6; // xmm10_4 float v7; // xmm7_4 float v8; // xmm12_4 float v9; // xmm0_4 signed int v10; // edi signed int v11; // ebp struct cocos2d::CCObject *v12; // r14 struct cocos2d::CCObject *v13; // rbx _QWORD *v14; // rcx __int64 v15; // rax __int64 v16; // rdx float v17; // xmm1_4 _UNKNOWN *retaddr; // [rsp+D8h] [rbp+0h] BYREF int v20; // [rsp+E0h] [rbp+8h] v2 = (struct cocos2d::CCObject *)&retaddr; if ( *(_QWORD *)(a1 + 1032) && *(_QWORD *)(a1 + 1056) ) { v4 = fmaxf( 0.1, (*(float (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, *(unsigned int *)(a1 + 1008))); v5 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, *(unsigned int *)(a1 + 1016)); v6 = *(float *)&v5; v20 = LODWORD(v5); if ( *(float *)&v5 < 0.1 ) { v6 = 2.0; v20 = 0x40000000; } v7 = a2 + *(float *)(a1 + 1024); v8 = v4 + 0.5; *(float *)(a1 + 1024) = v7; v9 = (float)(v4 + 0.5) + 0.45000002; if ( v7 >= v9 ) { v7 = v7 - v9; *(float *)(a1 + 1024) = v7; } v10 = 0; if ( v7 < 0.0 ) { *(_DWORD *)(a1 + 1024) = 0; v7 = 0.0; } LODWORD(v2) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1032)); v11 = (int)v2; if ( (int)v2 > 0 ) { do { v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1032), v10); v2 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1056), v10); v13 = v2; if ( !v12 || !v2 ) goto LABEL_27; if ( (unsigned int)(v10 - 1) > 5 ) v6 = 2.0; (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 320LL))(v12); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 128LL))(v12); if ( v7 >= 0.30000001 ) { if ( v7 >= 0.5 ) { if ( v8 <= v7 ) { GameToolbox::getEasedValue(1.0, v10, v6); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 208LL))(v13); if ( (float)(v8 + 0.050000001) <= v7 ) v16 = (unsigned int)(int)(float)((float)(1.0 - fminf( 1.0, (float)((float)((float)(v7 - 0.5) - v4) - 0.050000001) / 0.40000001)) * 255.0); else LOBYTE(v16) = -1; v15 = *((_QWORD *)v13 + 40); v14 = (_QWORD *)((char *)v13 + 320); goto LABEL_26; } v17 = fmaxf(0.0, (float)(v7 - 0.5) / v4); if ( v17 > 1.0 ) v17 = 1.0; GameToolbox::getEasedValue(v17, v10, v6); } (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 208LL))(v13); v14 = (_QWORD *)((char *)v13 + 320); LOBYTE(v16) = -1; v15 = *((_QWORD *)v13 + 40); } else { (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 208LL))(v13); v14 = (_QWORD *)((char *)v13 + 320); v15 = *((_QWORD *)v13 + 40); v16 = (unsigned int)(int)(float)((float)(v7 / 0.30000001) * 255.0); } LABEL_26: LODWORD(v2) = (*(__int64 (__fastcall **)(_QWORD *, __int64))(v15 + 40))(v14, v16); LABEL_27: v6 = *(float *)&v20; ++v10; } while ( v10 < v11 ); } } return (int)v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source