// // EasingSelectPopup::init from 0xcbb4d8 to 0xcbbbb8 (1760 bytes) // // 2 xrefs: // > EasingSelectPopup::create @ 0xcbbe58 // > @ 0x524e0 // // 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::init(EasingSelectPopup *this, EffectGameObject **a2, int a3, int a4, int a5) { int v10; // w23 _BOOL8 v11; // x0 cocos2d::CCObject *v12; // x0 cocos2d::CCArray *v13; // x0 cocos2d::CCObject *v14; // x0 cocos2d::CCArray *v15; // x0 cocos2d::CCObject *v16; // x0 cocos2d::CCArray *v17; // x0 cocos2d::CCObject *v18; // x0 cocos2d::CCDirector *v19; // x0 cocos2d::CCDirector *v20; // x0 void (__fastcall *v21)(cocos2d::CCLabelBMFont *, __int64 *); // x27 const char *v22; // x1 cocos2d::CCObject *v23; // x22 void (__fastcall *v24)(cocos2d::CCObject *, __int64 *); // x27 cocos2d::CCObject *v25; // x22 void (__fastcall *v26)(cocos2d::CCObject *, __int64 *); // x21 cocos2d::CCObject *v27; // x21 void (__fastcall *v28)(cocos2d::CCObject *, __int64 *); // x27 const char *v29; // x2 cocos2d::CCLabelBMFont *v30; // x0 cocos2d::CCLabelBMFont *v31; // x22 const char *v32; // x1 __int64 v33; // x21 __int64 v34; // x21 void (__fastcall *v35)(__int64, __int64 *); // x22 __int64 v36; // x2 __int64 v37; // x3 __int64 v38; // x4 __int64 v39; // x5 const char *v40; // x6 int v41; // w21 float v42; // s8 const char *v43; // x1 size_t v44; // x0 int v45; // w21 char *v47; // [xsp+D0h] [xbp+A0h] unsigned __int8 v48; // [xsp+DFh] [xbp+AFh] __int64 v49; // [xsp+E0h] [xbp+B0h] BYREF float v50; // [xsp+E8h] [xbp+B8h] BYREF float v51; // [xsp+ECh] [xbp+BCh] float v52; // [xsp+F0h] [xbp+C0h] BYREF float v53; // [xsp+F4h] [xbp+C4h] float v54[2]; // [xsp+F8h] [xbp+C8h] BYREF __int64 v55[2]; // [xsp+100h] [xbp+D0h] BYREF __int64 v56; // [xsp+110h] [xbp+E0h] BYREF __int64 v57; // [xsp+118h] [xbp+E8h] void *v58; // [xsp+120h] [xbp+F0h] v48 = SetupTriggerPopup::init(this, a2[85], a2[86], 400.0, 310.0, 1u, 0.0); if ( v48 ) { *((_DWORD *)this + 258) = a5; *((_DWORD *)this + 256) = a3; *((_QWORD *)this + 127) = a2; v10 = 0; *((_DWORD *)this + 257) = a4; v11 = cocos2d::CCDictionary::objectForKey(a2[95], a3) == 0; *((_BYTE *)this + 1036) = v11; *((_DWORD *)this + 260) = 0; v12 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v11); *((_QWORD *)this + 131) = v12; v13 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v12); v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v13); *((_QWORD *)this + 132) = v14; v15 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v14); v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15); *((_QWORD *)this + 133) = v16; v17 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v16); v18 = (cocos2d::CCObject *)cocos2d::CCArray::create(v17); *((_QWORD *)this + 134) = v18; cocos2d::CCObject::retain(v18); v19 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19); cocos2d::CCDirector::getWinSize(&v49, v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, *(float *)&v49 * 0.5, *((float *)&v49 + 1) * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v52, v50 - 138.0, (float)(v51 + 155.0) - 42.0); do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, (float)(92 * (v10 & 3)) + v52, v53 - (float)(45 * (v10 >> 2))); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v55, 0.0, 0.0, 80.0, 80.0); v25 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square04_001.png", v55); (*(void (__fastcall **)(cocos2d::CCObject *, void *))(*(_QWORD *)v25 + 960LL))(v25, &unk_11A2E10); v26 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v25 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v55, 328.0, 112.0); v26(v25, v55); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v25 + 160LL))(v25, 0.25); v27 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v25, 0, (__int64)this, (__int64)EasingSelectPopup::onCell, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v27 + 72LL))(v27, (unsigned int)v10); v28 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCNode::convertToNodeSpace(v55, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)v54); v28(v27, v55); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v27); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 131), v27); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 132), v25); GameToolbox::easeToText((GameToolbox *)(unsigned int)v10, &v56); v30 = (cocos2d::CCLabelBMFont *)((char *)&v56 + 1); if ( (v56 & 1) != 0 ) v30 = (cocos2d::CCLabelBMFont *)v58; v31 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v30, "bigFont.fnt", v29); if ( (v56 & 1) != 0 ) operator delete(v58); ++v10; (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v31 + 160LL))(v31, 0.32); cocos2d::CCLabelBMFont::limitLabelWidth(v31, 78.0, 0.32, 0.1); v21 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v31 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v54[0], (float)(v54[1] + 14.0) + 8.0); v21(v31, v55); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), v31); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 133), v31); v23 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"square_01_001.png", v22); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v23 + 160LL))(v23, 0.35); v24 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, 11.0, 14.0); v24(v23, v55); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *, __int64))(*(_QWORD *)v27 + 464LL))(v27, v23, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 134), v23); } while ( v10 != 19 ); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, v52 + 276.0, v53 - 180.0); v33 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 160LL))(v33, 0.65); v34 = CCMenuItemSpriteExtra::create(v33, 0, (__int64)this, (__int64)EasingSelectPopup::onRestart, 0); CCMenuItemSpriteExtra::setSizeMult(v34, 1.3); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v34); v35 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL); cocos2d::CCNode::convertToNodeSpace(v55, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)v54); v35(v34, v55); v56 = 0; v57 = 0; v58 = nullptr; std::string::__init(&v56, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v56, v36, v37, v38, v39, v40); if ( (v56 & 1) != 0 ) operator delete(v58); EasingSelectPopup::refreshCellHighlight(this); v41 = *((_DWORD *)this + 256); v42 = (float)(v51 - 155.0) + 45.0; if ( *((_BYTE *)this + 1036) ) v43 = "Preview:"; else v43 = "Duration:"; v47 = (char *)v43; v56 = 0; v57 = 0; v58 = nullptr; v44 = strlen(v43); std::string::__init(&v56, v47, v44); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v50 - 110.0, v42); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, v41, (char *)&v56, (__int64)v55, 0, 1, 6, 0, 0.7, 0.0, 10.0, 0, 0, 0, 2, 0); if ( (v56 & 1) != 0 ) operator delete(v58); v45 = *((_DWORD *)this + 258); v56 = 0; v57 = 0; v58 = nullptr; std::string::__init(&v56, "Ease Rate:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v50 + 110.0, v42); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, v45, (char *)&v56, (__int64)v55, 0, 1, 4, 0, 0.7, 0.1, 4.0, 0, 0, 0, 2, 0); if ( (v56 & 1) != 0 ) operator delete(v58); SetupTriggerPopup::postSetup(this); if ( *((_BYTE *)this + 1036) ) SetupTriggerPopup::updateValue((cocos2d::CCDictionary **)this, *((_DWORD *)this + 256), 1.0); EasingSelectPopup::refreshRateVisual(this); cocos2d::CCNode::scheduleUpdate(this); } return v48; }
GD Web Decomp Icon

GD Web Decomp

Raw Source