// // EditorUI::createDpadMoveMenu from 0x10063a1e0 to 0x10063add8 (3064 bytes) // // 1 xrefs: // > EditorUI::createMoveMenu @ 0x10063a19e // // 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:34:40 +0000 // __int64 __fastcall EditorUI::createDpadMoveMenu(__int64 a1, __int64 a2) { void *v3; // rax __int64 v4; // rax __int64 v5; // rdi __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax float v11; // xmm2_4 float v12; // xmm2_4 float v13; // xmm3_4 float v14; // xmm4_4 float v15; // xmm1_4 float v16; // xmm3_4 float v17; // xmm3_4 __int64 v18; // rbx __int64 v19; // rax char GameVariable; // al float v21; // xmm3_4 float v22; // xmm2_4 float v23; // xmm4_4 double v24; // xmm0_8 float v25; // xmm3_4 char *v26; // r15 double v27; // xmm0_8 char *v28; // r14 __int64 v29; // rbx _QWORD *v30; // r12 __int64 v31; // rdi unsigned __int8 *v32; // r14 void *v33; // rbx double v34; // xmm0_8 __int64 v35; // r15 unsigned __int8 *v36; // r14 void *v37; // rbx double v38; // xmm0_8 __int64 v39; // r15 unsigned __int8 *v40; // r14 void *v41; // rbx double v42; // xmm0_8 __int64 v43; // r15 unsigned __int8 *v44; // r14 void *v45; // rbx __int64 v46; // r15 __int64 v47; // rbx __int64 v48; // rdi __int64 v49; // rsi __int64 v50; // rdx __int64 v51; // rcx __int64 v52; // rbx __int64 *v53; // rdi __int64 v54; // rax double v55; // xmm0_8 float *v56; // r15 __int64 v57; // r13 char *v58; // r14 float *SpriteButton; // rbx __int64 v60; // r12 int v61; // ecx __int64 v62; // r13 __int64 v63; // r15 int v64; // eax __int64 v65; // r12 unsigned int v66; // ebx _DWORD *v67; // r15 __int64 v68; // rax _DWORD *v69; // rdi unsigned __int64 v71; // [rsp+10h] [rbp-B0h] BYREF __int64 v72; // [rsp+18h] [rbp-A8h] unsigned __int64 v73; // [rsp+20h] [rbp-A0h] BYREF float v74; // [rsp+28h] [rbp-98h] BYREF float v75; // [rsp+2Ch] [rbp-94h] __int64 v76; // [rsp+30h] [rbp-90h] __int64 v77; // [rsp+3Ch] [rbp-84h] BYREF float v78; // [rsp+44h] [rbp-7Ch] __int64 v79; // [rsp+48h] [rbp-78h] __int64 v80; // [rsp+50h] [rbp-70h] float v81; // [rsp+58h] [rbp-68h] float v82; // [rsp+5Ch] [rbp-64h] float v83; // [rsp+60h] [rbp-60h] float v84; // [rsp+64h] [rbp-5Ch] float v85; // [rsp+68h] [rbp-58h] float v86; // [rsp+6Ch] [rbp-54h] unsigned __int64 v87; // [rsp+70h] [rbp-50h] BYREF unsigned __int64 v88; // [rsp+78h] [rbp-48h] BYREF unsigned __int64 v89; // [rsp+80h] [rbp-40h] BYREF unsigned __int64 v90; // [rsp+88h] [rbp-38h] BYREF v72 = a2; v3 = cocos2d::CCNode::create(); *(_QWORD *)(a1 + 1592) = v3; (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v3, 10); v4 = sub_1007FE900(a1); *(_QWORD *)(a1 + 1608) = v4; v5 = v4; cocos2d::CCObject::retain(v4); v6 = sub_1007FE900(v5); *(_QWORD *)(a1 + 1616) = v6; cocos2d::CCObject::retain(v6); v7 = cocos2d::CCDirector::sharedDirector(); v83 = sub_100479760(v7) + 96.0; v8 = cocos2d::CCDirector::sharedDirector(); v86 = (float)(*(float *)(a1 + 856) * 0.5) + sub_100479750(v8); v9 = cocos2d::CCDirector::sharedDirector(); *(float *)&v79 = sub_100479770(v9) + -96.0; v10 = cocos2d::CCDirector::sharedDirector(); v11 = *(float *)&v79 - (float)(sub_100479760(v10) + 96.0); LODWORD(v79) = fminf(v11 / 299.0, 1.0); v12 = (float)(v11 / *(float *)&v79) + -299.0; v13 = fminf(v12 / 29.0, 1.0); v14 = (float)(v13 * 4.0) + 4.0; v15 = (float)(v13 * 8.0) + 8.0; v81 = v13 + 3.0; v16 = (float)(v13 * -29.0) + v12; v84 = fminf((float)(v16 / 7.0) + 23.0, 32.0); v17 = (float)(v16 - (float)((float)(v84 + -23.0) * 7.0)) * 0.25; v82 = v14 + v17; v85 = v17 + v15; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1592) + 160LL))(*(_QWORD *)(a1 + 1592)); v18 = *(_QWORD *)(a1 + 1592); sub_100278250((float *)&v87, v83 * (float)(1.0 - *(float *)&v79), (float)(1.0 - *(float *)&v79) * v86); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v18 + 184LL))(v18, &v87); *(float *)&v79 = (float)(v84 * 3.0) + (float)(v81 + v81); v19 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v19, "0247"); *(_BYTE *)(a1 + 1604) = GameVariable; if ( GameVariable ) { v83 = v83 + v82; v21 = v85; v22 = (float)((float)((float)(4.0 * v84) + (float)(3.0 * v81)) + v83) + v85; v23 = (float)(*(float *)&v79 + v22) + v85; *(float *)&v80 = v23; } else { *(float *)&v80 = v83 + v82; v21 = v85; v22 = (float)((float)(v83 + v82) + 99.0) + v85; v23 = (float)(*(float *)&v79 + v22) + v85; v83 = v23; } *(_QWORD *)&v24 = LODWORD(v81); v81 = v81 + v84; *(float *)&v24 = v81; v25 = v21 * 0.5; v82 = v22; v85 = v22 - v25; *(float *)&v79 = v23 - v25; v26 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_vLine_001.png", v24); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v26 + 912LL))(v26, 50); sub_100278250((float *)&v87, v22 - v25, v86); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v26 + 184LL))(v26, &v87); v27 = (*(double (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 1592) + 456LL))(*(_QWORD *)(a1 + 1592), v26); v28 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_vLine_001.png", v27); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v28 + 912LL))(v28, 50); sub_100278250((float *)&v87, *(float *)&v79, v86); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v28 + 184LL))(v28, &v87); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 1592) + 456LL))(*(_QWORD *)(a1 + 1592), v28); *(float *)&v80 = *(float *)&v80 + 49.5; sub_100278260(&v74, 49.5, 40.0); sub_100278250((float *)&v87, *(float *)&v80, v86); sub_100278260((float *)&v77, v74 + 3.0, v75 + 3.0); sub_100278260((float *)&v73, 10.0, 7.0); v29 = a1; v30 = (_QWORD *)sub_10063ADE0(&v87, &v77, &v73); (*(void (__fastcall **)(_QWORD *, _QWORD *))(*v30 + 184LL))(v30, &qword_100BE5A88); v31 = *(_QWORD *)(v29 + 1592); v76 = v29; (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v31 + 456LL))(v31, v30); sub_100278250((float *)&v87, -1.0, 0.0); sub_100278250((float *)&v88, 1.0, 0.0); sub_100278250((float *)&v89, 0.0, 1.0); sub_100278250((float *)&v90, 0.0, -1.0); v32 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_editorArrow_001.png", 0.0); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v32 + 160LL))(v32, 0.85365856); v79 = 0; v33 = CCMenuItemSpriteExtra::create((__int64)v32, 0, v29, (__int64)EditorUI::moveObjectCall, 0); (*(void (__fastcall **)(unsigned __int8 *, double))(*(_QWORD *)v32 + 360LL))(v32, 0.0); cocos2d::CCSprite::setFlipX(v32, 0); cocos2d::CCSprite::setFlipY(v32, 0); (*(void (__fastcall **)(_QWORD *, void *))(*v30 + 456LL))(v30, v33); v85 = -14.085366; v78 = v74 + -14.085366; sub_100278250((float *)&v73, *(float *)&v80, v86); *(_QWORD *)&v34 = LODWORD(v78); sub_1002783B0((double *)&v71, &v87, (__m128)LODWORD(v78)); sub_100278350((double *)&v77, &v73, &v71); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v33 + 184LL))(v33, &v77); v30[55] = v33; v35 = v76; sub_1007FEBF0(*(_QWORD *)(v76 + 1608), v33); v36 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_editorArrow_001.png", v34); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v36 + 160LL))(v36, 0.85365856); v37 = CCMenuItemSpriteExtra::create((__int64)v36, 0, v35, (__int64)EditorUI::moveObjectCall, 0); (*(void (__fastcall **)(unsigned __int8 *, double))(*(_QWORD *)v36 + 360LL))(v36, 0.0); cocos2d::CCSprite::setFlipX(v36, 1u); cocos2d::CCSprite::setFlipY(v36, 0); (*(void (__fastcall **)(_QWORD *, void *))(*v30 + 456LL))(v30, v37); v78 = v74 + -14.085366; sub_100278250((float *)&v73, *(float *)&v80, v86); *(_QWORD *)&v38 = LODWORD(v78); sub_1002783B0((double *)&v71, &v88, (__m128)LODWORD(v78)); sub_100278350((double *)&v77, &v73, &v71); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v37 + 184LL))(v37, &v77); v30[56] = v37; v39 = v76; sub_1007FEBF0(*(_QWORD *)(v76 + 1608), v37); v40 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_editorArrow_001.png", v38); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v40 + 160LL))(v40, 0.85365856); v41 = CCMenuItemSpriteExtra::create((__int64)v40, 0, v39, (__int64)EditorUI::moveObjectCall, 0); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v40 + 360LL))(v40, 90.0); cocos2d::CCSprite::setFlipX(v40, 0); cocos2d::CCSprite::setFlipY(v40, 1u); (*(void (__fastcall **)(_QWORD *, void *))(*v30 + 456LL))(v30, v41); v78 = v75 + -14.085366; sub_100278250((float *)&v73, *(float *)&v80, v86); *(_QWORD *)&v42 = LODWORD(v78); sub_1002783B0((double *)&v71, &v89, (__m128)LODWORD(v78)); sub_100278350((double *)&v77, &v73, &v71); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v41 + 184LL))(v41, &v77); v30[57] = v41; v43 = v76; sub_1007FEBF0(*(_QWORD *)(v76 + 1608), v41); v44 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_editorArrow_001.png", v42); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v44 + 160LL))(v44, 0.85365856); v45 = CCMenuItemSpriteExtra::create((__int64)v44, 0, v43, (__int64)EditorUI::moveObjectCall, 0); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v44 + 360LL))(v44, -90.0); cocos2d::CCSprite::setFlipX(v44, 0); cocos2d::CCSprite::setFlipY(v44, 0); (*(void (__fastcall **)(_QWORD *, void *))(*v30 + 456LL))(v30, v45); v85 = v85 + v75; sub_100278250((float *)&v73, *(float *)&v80, v86); sub_1002783B0((double *)&v71, &v90, (__m128)LODWORD(v85)); sub_100278350((double *)&v77, &v73, &v71); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v45 + 184LL))(v45, &v77); v30[58] = v45; v46 = v76; sub_1007FEBF0(*(_QWORD *)(v76 + 1608), v45); v47 = cocos2d::CCLabelBMFont::create_3(" ", "bigFont.fnt"); *(_QWORD *)(v46 + 1624) = v47; sub_100278250((float *)&v77, *(float *)&v80, v86 + 1.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL))(v47, &v77); v48 = *(_QWORD *)(v46 + 1592); v49 = *(_QWORD *)(v46 + 1624); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v48 + 464LL))(v48, v49, 1); v52 = cocos2d::CCMenu::create(v48, v49, v50, v51); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v52 + 184LL))(v52, &qword_100BE5A88); v53 = *(__int64 **)(v46 + 1592); v54 = *v53; v80 = v52; (*(void (__fastcall **)(__int64 *, __int64))(v54 + 456))(v53, v52); v85 = v84 / 0.57499999; v84 = v84 * 0.5; *(_QWORD *)&v55 = LODWORD(v82); *(float *)&v55 = v82 + v84; v82 = v82 + v84; v56 = (float *)&unk_100B7FD6C; v57 = v76; do { v58 = cocos2d::CCSprite::createWithSpriteFrameName(*(_QWORD *)(v56 - 3), v55); sub_1002782D0(&v77, &qword_100BE5A88); SpriteButton = EditorUI::getSpriteButton( v57, v58, (__int64)EditorUI::onDpadStep, 0, v80, 4, 0.57499999, v85, (__int64)&v77); v60 = v79; (*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)SpriteButton + 72LL))(SpriteButton, (unsigned int)v79); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v58 + 160LL))(v58, *(v56 - 1) * 1.3200001); v61 = *(_DWORD *)v56 != 2 ? -1 : 0xDC82FF; if ( *(_DWORD *)v56 == 1 ) v61 = 4907775; LOWORD(v77) = v61; BYTE2(v77) = BYTE2(v61); (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v58 + 960LL))(v58, &v77); HIDWORD(v55) = 0; *(float *)&v55 = (float)((float)((unsigned __int8)v60 % 3u) * v81) + v82; sub_100278250((float *)&v77, *(float *)&v55, (float)((float)(int)(1 - (unsigned __int8)v60 / 3u) * 28.0) + v86); (*(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)SpriteButton + 184LL))(SpriteButton, &v77); sub_1007FEBF0(*(_QWORD *)(v57 + 1616), SpriteButton); v56 += 8; v79 = v60 + 1; } while ( v60 != 8 ); v62 = v76; v63 = v72; v64 = sub_1007FEF90(v72); v65 = v80; if ( v64 > 0 ) { v84 = v84 + v83; v66 = 0; do { v67 = (_DWORD *)sub_1007FEFE0(v63, v66); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v67 + 160LL))(v67, 0.57499999); v67[101] = 1058222899; (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v65 + 456LL))(v65, v67); sub_100278250( (float *)&v77, (float)((float)(v66 & 3) * v81) + v84, (float)((float)(int)(1 - (v66 >> 2)) * 28.0) + v86); v68 = *(_QWORD *)v67; v69 = v67; v63 = v72; (*(void (__fastcall **)(_DWORD *, __int64 *))(v68 + 184))(v69, &v77); ++v66; } while ( (int)v66 < (int)sub_1007FEF90(v63) ); } EditorUI::setDpadStep(v62, *(unsigned int *)(v62 + 1600)); return __stack_chk_guard; }