// // EasingSelectPopup::init from 0x140175e10 to 0x140176645 (2101 bytes) // // 2 xrefs: // > SetupTriggerPopup::onEasePreview @ 0x140614cd5 // > @ 0x14091850c // // 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 // // Hidden C++ exception states: #wind=4 char __fastcall EasingSelectPopup::init(cocos2d::CCNode *a1, __int64 a2, int a3, int a4, int a5) { __int64 v6; // rdi char result; // al __int64 v10; // rcx cocos2d::CCObject *v11; // rax __int64 v12; // rcx cocos2d::CCObject *v13; // rax __int64 v14; // rcx cocos2d::CCObject *v15; // rax __int64 v16; // rcx cocos2d::CCObject *v17; // rax __int64 v18; // rcx __int64 v19; // rax int i; // r15d __int64 v21; // rax __int64 *v22; // rdi __int64 v23; // rbx __int64 v24; // rax __int64 *v25; // rax cocos2d::CCObject *v26; // rsi __int64 v27; // rbx __int64 v28; // rax __int64 v29; // rax cocos2d::CCLabelBMFont *v30; // rdi __int64 v31; // rbx __int64 v32; // rax struct cocos2d::CCObject *v33; // rdi __int64 v34; // rbx __int64 v35; // rax __int64 *v36; // rbx cocos2d::CCObject *v37; // rdi __int64 v38; // rbx __int64 v39; // rax float v40; // xmm8_4 const char *v41; // rdx size_t v42; // r8 int v43; // ebx int v44; // eax int v45; // ebx int v46; // eax float v47; // [rsp+88h] [rbp-80h] BYREF float v48; // [rsp+8Ch] [rbp-7Ch] __int128 *v49; // [rsp+90h] [rbp-78h] BYREF __int128 v50; // [rsp+98h] [rbp-70h] BYREF __int64 v51; // [rsp+A8h] [rbp-60h] __int64 v52; // [rsp+B0h] [rbp-58h] float v53; // [rsp+B8h] [rbp-50h] BYREF float v54; // [rsp+BCh] [rbp-4Ch] float v55[2]; // [rsp+C0h] [rbp-48h] BYREF float v56[2]; // [rsp+C8h] [rbp-40h] BYREF _BYTE v57[8]; // [rsp+D0h] [rbp-38h] BYREF _BYTE v58[8]; // [rsp+D8h] [rbp-30h] BYREF _BYTE v59[8]; // [rsp+E0h] [rbp-28h] BYREF void *v60; // [rsp+E8h] [rbp-20h] _BYTE v61[8]; // [rsp+F0h] [rbp-18h] BYREF _BYTE v62[32]; // [rsp+F8h] [rbp-10h] BYREF v6 = a3; result = SetupTriggerPopup::init((_DWORD)a1, *(_QWORD *)(a2 + 680), *(_QWORD *)(a2 + 688), a4, 1134231552, 1, 0); if ( !result ) return result; *((_QWORD *)a1 + 125) = a2; *((_DWORD *)a1 + 252) = v6; *((_DWORD *)a1 + 253) = a4; *((_DWORD *)a1 + 254) = a5; *((_BYTE *)a1 + 1020) = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a2 + 760), v6) == nullptr; *((_DWORD *)a1 + 256) = 0; v11 = (cocos2d::CCObject *)cocos2d::CCArray::create(v10); *((_QWORD *)a1 + 129) = v11; cocos2d::CCObject::retain(v11); v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(v12); *((_QWORD *)a1 + 130) = v13; cocos2d::CCObject::retain(v13); v15 = (cocos2d::CCObject *)cocos2d::CCArray::create(v14); *((_QWORD *)a1 + 131) = v15; cocos2d::CCObject::retain(v15); v17 = (cocos2d::CCObject *)cocos2d::CCArray::create(v16); *((_QWORD *)a1 + 132) = v17; cocos2d::CCObject::retain(v17); *((_BYTE *)a1 + 744) = 1; (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1096LL))(a1); v19 = cocos2d::CCDirector::sharedDirector(v18); cocos2d::CCDirector::getWinSize(v19, v56); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, v56[0] * 0.5, v56[1] * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v47 - 138.0, (float)(v48 + 155.0) - 42.0); for ( i = 0; i <= 18; ++i ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v55, (float)(92 * (i & 3)) + v53, v54 - (float)(int)(45 * ((unsigned int)i >> 2))); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v50, 0.0, 0.0, 80.0, 80.0); v22 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("square04_001.png", v21); (*(void (__fastcall **)(__int64 *, void *))v22[40])(v22 + 40, &unk_140702F90); v23 = *v22; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v59, 328.0, 112.0); (*(void (__fastcall **)(__int64 *, __int64))(v23 + 312))(v22, v24); (*(void (__fastcall **)(__int64 *))(*v22 + 160))(v22); v60 = operator new(0x208u); v25 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v60); v26 = (cocos2d::CCObject *)v25; if ( v25 ) { if ( CCMenuItemSpriteExtra::init(v25, v22, 0, (__int64)a1, (__int64)EasingSelectPopup::onCell) ) { cocos2d::CCObject::autorelease(v26); goto LABEL_8; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v26 + 8LL))(v26, 1); } v26 = nullptr; LABEL_8: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v26 + 64LL))(v26, (unsigned int)i); v27 = *(_QWORD *)v26; cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 69), v61, v55); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v27 + 184))(v26, v28); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)a1 + 69) + 464LL))(*((_QWORD *)a1 + 69), v26); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 129), v26); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 130), (struct cocos2d::CCObject *)v22); v29 = GameToolbox::easeToText((__int64)v62, i); if ( *(_QWORD *)(v29 + 24) > 0xFu ) v29 = *(_QWORD *)v29; v30 = cocos2d::CCLabelBMFont::create((const char *)v29, (const char *)&qword_140704F78); sub_14003D310((__int64)v62); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v30 + 160LL))(v30); cocos2d::CCLabelBMFont::limitLabelWidth(v30, 78.0, 0.31999999, 0.1); v31 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v55[0], (float)(v55[1] + 14.0) + 8.0); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v31 + 184))(v30, v32); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)a1 + 73) + 464LL))( *((_QWORD *)a1 + 73), v30); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), v30); v33 = cocos2d::CCSprite::createWithSpriteFrameName("square_01_001.png"); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v33 + 160LL))(v33); v34 = *(_QWORD *)v33; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 11.0, 14.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v34 + 184))(v33, v35); (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v26 + 456LL))( v26, v33, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 132), v33); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, v53 + 276.0, v54 - 180.0); v36 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); (*(void (__fastcall **)(__int64 *))(*v36 + 160))(v36); v49 = (__int128 *)operator new(0x208u); v37 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v49); if ( v37 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v37, v36, 0, (__int64)a1, (__int64)EasingSelectPopup::onRestart) ) { cocos2d::CCObject::autorelease(v37); goto LABEL_16; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v37 + 8LL))(v37, 1); } v37 = nullptr; LABEL_16: *((_DWORD *)v37 + 93) = 1067869798; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)a1 + 69) + 464LL))(*((_QWORD *)a1 + 69), v37); v38 = *(_QWORD *)v37; cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 69), &v49, v58); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v38 + 184))(v37, v39); v50 = 0; v51 = 2; v52 = 15; strcpy((char *)&v50, "OK"); SetupTriggerPopup::addCloseButton(a1, &v50); EasingSelectPopup::refreshCellHighlight(a1); v40 = (float)(v48 - 155.0) + 45.0; v49 = &v50; v41 = "Duration:"; if ( *((_BYTE *)a1 + 1020) ) v41 = "Preview:"; v50 = 0; v51 = 0; v52 = 0; v42 = -1; do ++v42; while ( v41[v42] ); sub_14003D230(&v50, v41, v42); v43 = *((_DWORD *)a1 + 252); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v47 - 110.0, v40); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, v43, (unsigned int)&v50, v44, 1060320051, 0, 1, 6, 0, 0, 1092616192, 0, 0, 0, 2, 0); v49 = &v50; *((_QWORD *)&v50 + 1) = 14949; v51 = 10; v52 = 15; *(_QWORD *)&v50 = 0x7461522065736145LL; v45 = *((_DWORD *)a1 + 254); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v47 + 110.0, v40); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, v45, (unsigned int)&v50, v46, 1060320051, 0, 1, 4, 0, 1036831949, 1082130432, 0, 0, 0, 2, 0); (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1136LL))(a1); *((_BYTE *)a1 + 744) = 0; if ( *((_BYTE *)a1 + 1020) ) SetupTriggerPopup::updateValue(a1, *((unsigned int *)a1 + 252)); EasingSelectPopup::refreshRateVisual(a1); cocos2d::CCNode::scheduleUpdate(a1); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source