// // SetupTriggerPopup::createCustomEasingControls from 0x100224830 to 0x100225070 (2112 bytes) // // 4 xrefs: // > sub_1003DDDD0 @ 0x1003df926 // > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cf750 // > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cf89e // > SetupAreaAnimTriggerPopup::init @ 0x1004d5ed3 // // 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 12:27:04 +0000 // __int64 __fastcall SetupTriggerPopup::createCustomEasingControls( __int64 a1, __int64 a2, __int64 a3, unsigned int a4, unsigned int a5, unsigned int a6, float a7, int a8) { __int64 i; // rdi __int64 v12; // rbx __int64 v13; // rax __int64 j; // rdi __int64 v15; // rbx __int64 v16; // rax _DWORD *v17; // rbx signed int v18; // r14d unsigned int v19; // r13d _DWORD *v20; // rbx __int64 v21; // r13 float *v22; // rbx bool v23; // zf __int64 v24; // rdi __int64 v25; // r14 __int64 v26; // rax __int64 v27; // r12 __int64 v28; // rax __int64 v29; // r14 __int64 v30; // r13 __int64 v31; // r14 __int128 v32; // xmm0 __int64 v33; // r13 __int64 v34; // r14 __int64 v35; // rbx float *v36; // rax __int64 v37; // rbx __int64 v38; // r14 __int64 v39; // r12 __int64 v40; // rbx __int64 v41; // r14 __int64 v42; // rbx unsigned int v43; // r12d unsigned int v44; // ebx float v45; // xmm0_4 float v46; // xmm0_4 char v48[8]; // [rsp+4h] [rbp-ACh] BYREF unsigned int v49; // [rsp+Ch] [rbp-A4h] __int128 v50; // [rsp+10h] [rbp-A0h] char v51[8]; // [rsp+28h] [rbp-88h] BYREF __int64 v52; // [rsp+30h] [rbp-80h] __int64 v53; // [rsp+38h] [rbp-78h] __int64 v54; // [rsp+40h] [rbp-70h] char v55[8]; // [rsp+4Ch] [rbp-64h] BYREF float v56; // [rsp+54h] [rbp-5Ch] __int64 v57; // [rsp+58h] [rbp-58h] unsigned int v58; // [rsp+60h] [rbp-50h] unsigned int v59; // [rsp+64h] [rbp-4Ch] __int64 v60; // [rsp+68h] [rbp-48h] __int64 v61; // [rsp+70h] [rbp-40h] __int64 v62; // [rsp+78h] [rbp-38h] float v63; // [rsp+84h] [rbp-2Ch] v59 = a4; v63 = a7; v52 = a3; *(_QWORD *)&v50 = a2; for ( i = *(_QWORD *)(a1 + 912); (unsigned int)sub_1007FEF90(i) <= a6; i = *(_QWORD *)(a1 + 912) ) { v12 = *(_QWORD *)(a1 + 912); v13 = sub_1007FE900(i); sub_1007FEBF0(v12, v13); } v60 = sub_1007FEFE0(*(_QWORD *)(a1 + 912), a6); for ( j = *(_QWORD *)(a1 + 928); (unsigned int)sub_1007FEF90(j) <= a8; j = *(_QWORD *)(a1 + 928) ) { v15 = *(_QWORD *)(a1 + 928); v16 = sub_1007FE900(j); sub_1007FEBF0(v15, v16); } v49 = a6; v58 = a5; v61 = sub_1007FEFE0(*(_QWORD *)(a1 + 928), (unsigned int)a8); v62 = *(_QWORD *)(a1 + 936); v17 = operator new(0x40u); cocos2d::CCObject::CCObject(v17); *(_QWORD *)v17 = off_100ABB920; v18 = v58; v17[14] = v58; cocos2d::CCObject::autorelease(v17); v19 = v59; v57 = (int)v59; cocos2d::CCDictionary::setObject_1(v62, v17, (int)v59); v62 = *(_QWORD *)(a1 + 936); v20 = operator new(0x40u); cocos2d::CCObject::CCObject(v20); *(_QWORD *)v20 = off_100ABB920; v20[14] = v19; cocos2d::CCObject::autorelease(v20); cocos2d::CCDictionary::setObject_1(v62, v20, v18); v21 = *(_QWORD *)(a1 + 960); v22 = (float *)operator new(0x40u); cocos2d::CCObject::CCObject(v22); *(_QWORD *)v22 = off_100AE75B8; v22[14] = v63; cocos2d::CCObject::autorelease(v22); cocos2d::CCDictionary::setObject_1(v21, v22, v57); v23 = (*(_BYTE *)v50 & 1) == 0; v53 = v18; if ( v23 ) v24 = v50 + 1; else v24 = *(_QWORD *)(v50 + 16); v25 = cocos2d::CCLabelBMFont::create_3(v24, "goldFont.fnt"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 184LL))(v25, v52); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v25); sub_1007FEBF0(v60, v25); if ( a8 > 0 ) sub_1007FEBF0(v61, v25); *(float *)&v62 = 0.69999999 * v63; v26 = *(_QWORD *)v25; *(float *)&v54 = 0.80000001 * v63; (*(void (__fastcall **)(__int64))(v26 + 160))(v25); v27 = cocos2d::CCLabelBMFont::create_3(" ", "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v27); sub_1007FEBF0(v60, v27); if ( a8 > 0 ) sub_1007FEBF0(v61, v27); v28 = *(_QWORD *)v25; v52 = v25; v29 = (*(__int64 (__fastcall **)(__int64))(v28 + 192))(v25); sub_100278250(v55, 0.0, -30.0 * v63); sub_100278350(v51, v29, v55); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v27 + 184LL))(v27, v51); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, *(float *)&v62); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 944), v27, v57); v30 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v30 + 960LL))(v30, &unk_100A06358); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v30 + 912LL))(v30, 100); sub_1007FEBF0(v60, v30); if ( a8 > 0 ) sub_1007FEBF0(v61, v30); v57 = v27; v56 = 0.40000001 * v63; *(float *)&v50 = 0.30000001 * v63; v31 = cocos2d::CCLabelBMFont::create_3("0", "bigFont.fnt"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v30 + 456LL))(v30, v31); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 128LL))(v31, *(float *)&v50 / *(float *)&v54); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 144LL))(v31, *(float *)&v50 / v56); sub_1007FEBF0(v60, v31); if ( a8 > 0 ) sub_1007FEBF0(v61, v31); v32 = 0x42C80000u; *(float *)&v32 = 100.0 * v63; v50 = v32; cocos2d::CCNode::convertToNodeSpace(v55, v30, &unk_100BE1790); sub_100278250(v48, 1.0, 1.5); sub_100278350(v51, v55, v48); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v31 + 184LL))(v31, v51); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 944), v31, v53); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 128LL))(v30, *(float *)&v54); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 144LL))(v30, v56); v33 = CCMenuItemSpriteExtra::create(v30, 0, a1, SetupTriggerPopup::onCustomEaseRate, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v33); v54 = *(_QWORD *)(a1 + 552); v34 = v52; v35 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v52 + 192LL))(v52); v36 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v34 + 328LL))(v34); sub_100278250(v48, (float)((float)(*v36 * 0.5) + 10.0) * v63, -2.0 * v63); sub_100278350(v55, v35, v48); cocos2d::CCNode::convertToNodeSpace(v51, v54, v55); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v33 + 184LL))(v33, v51); CCMenuItemSpriteExtra::setSizeMult(v33, 1.2); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v33 + 72LL))(v33, v58); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 952), v33, v53); sub_1007FEBF0(v60, v33); if ( a8 > 0 ) sub_1007FEBF0(v61, v33); v37 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v37, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v37 + 160LL))(v37, *(float *)&v62); v38 = CCMenuItemSpriteExtra::create(v37, 0, a1, SetupTriggerPopup::onCustomEaseArrowUp, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v38); v53 = *(_QWORD *)(a1 + 552); v39 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 192LL))(v57); sub_100278250(v48, *(float *)&v50, 0.0); sub_100278350(v55, v39, v48); cocos2d::CCNode::convertToNodeSpace(v51, v53, v55); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v38 + 184LL))(v38, v51); CCMenuItemSpriteExtra::setSizeMult(v38, 1.4); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v38 + 72LL))(v38, v59); sub_1007FEBF0(v60, v38); if ( a8 > 0 ) sub_1007FEBF0(v61, v38); v40 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL))(v40, *(float *)&v62); v41 = CCMenuItemSpriteExtra::create(v40, 0, a1, SetupTriggerPopup::onCustomEaseArrowDown, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v41); v62 = *(_QWORD *)(a1 + 552); v42 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 192LL))(v57); sub_100278250(v48, -*(float *)&v50, 0.0); sub_100278350(v55, v42, v48); cocos2d::CCNode::convertToNodeSpace(v51, v62, v55); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v41 + 184LL))(v41, v51); CCMenuItemSpriteExtra::setSizeMult(v41, 1.4); v43 = v59; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v41 + 72LL))(v41, v59); sub_1007FEBF0(v60, v41); if ( a8 > 0 ) sub_1007FEBF0(v61, v41); v44 = v58; sub_100224060(a1, v52, v43, v58, v49, a8, v63); v45 = (*(float (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1464LL))(a1, v43); SetupTriggerPopup::updateCustomEaseLabel(a1, v43, (unsigned int)(int)v45); v46 = (*(float (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1464LL))(a1, v44); SetupTriggerPopup::updateCustomEaseRateLabel(a1, v46); return SetupTriggerPopup::toggleCustomEaseRateVisibility(a1, v43, v44); }
GD Web Decomp Icon

GD Web Decomp

Raw Source