//
// EditorUI::createMoveMenu from 0x1006390e0 to 0x10063a1b7 (4311 bytes)
//
// 2 xrefs:
// > EditorUI::setupEditMenu @ 0x1006390c9
// > EditorUI::recreateButtonTabs @ 0x10063cd3b
//
// 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::createMoveMenu(__int64 a1)
{
__int64 v1; // rax
_QWORD *v2; // rax
_QWORD *v3; // rdi
__int64 v4; // r15
__int64 v5; // rax
__int64 v6; // r12
float *SpriteButton_2; // r14
float *v8; // r14
float *v9; // r14
float *v10; // r14
float *v11; // r14
float *v12; // r14
float *v13; // r14
float *v14; // r14
float *v15; // r14
float *v16; // r14
float *v17; // r14
float *v18; // r14
__int64 v19; // r14
float *v20; // r13
__int64 v21; // rbx
float *v22; // r15
float *v23; // r12
float *v24; // r14
__int64 v25; // rax
__int64 v26; // rax
__int64 v27; // rax
__int64 v28; // rax
__int64 v29; // r12
float *v30; // r14
float *v31; // r14
float *v32; // r14
float *v33; // r14
__int64 v34; // rax
__int64 v35; // rax
float v36; // xmm0_4
float v37; // xmm2_4
__int64 v38; // r12
__int64 SpriteButton_1; // r14
__int64 v40; // r14
__int64 v41; // r14
__int64 v42; // r14
__int64 v43; // r15
__int64 v44; // rbx
__int64 v45; // rax
const char *CString; // r14
size_t v47; // rax
size_t v48; // r13
char *v49; // r12
size_t v50; // rbx
__int64 v51; // rbx
__int64 v52; // r15
__int64 v53; // rbx
__int64 v54; // rax
const char *v55; // r14
size_t v56; // rax
size_t v57; // r13
char *v58; // r12
size_t v59; // rbx
__int64 v60; // rbx
__int64 v61; // r15
__int64 v62; // rbx
__int64 v63; // rax
const char *v64; // r14
size_t v65; // rax
size_t v66; // r13
char *v67; // r12
size_t v68; // rbx
__int64 v69; // rbx
__int64 v70; // r15
__int64 v71; // rbx
__int64 v72; // rax
const char *v73; // r14
size_t v74; // rax
size_t v75; // r13
char *v76; // r12
size_t v77; // rbx
__int64 v78; // rbx
__int64 v79; // r15
__int64 v80; // rbx
__int64 v81; // rax
const char *v82; // r14
size_t v83; // rax
size_t v84; // r13
char *v85; // r12
size_t v86; // rbx
__int64 v87; // rbx
__int64 v88; // r15
__int64 v89; // rbx
__int64 v90; // rax
const char *v91; // r14
size_t v92; // rax
size_t v93; // r13
char *v94; // r12
size_t v95; // rbx
__int64 v96; // rbx
__int64 v97; // r15
__int64 v98; // rbx
__int64 v99; // rax
const char *v100; // r14
size_t v101; // rax
size_t v102; // r13
char *v103; // r12
size_t v104; // rbx
__int64 v105; // rax
unsigned int IntGameVariable; // r14d
__int64 v107; // rax
unsigned int v108; // r15d
__int64 v109; // rax
float v110; // xmm0_4
_QWORD *v111; // r12
__int64 v112; // rax
char v114; // [rsp+0h] [rbp-80h]
char v115; // [rsp+0h] [rbp-80h]
char v116; // [rsp+0h] [rbp-80h]
char v117; // [rsp+0h] [rbp-80h]
char v118; // [rsp+0h] [rbp-80h]
char v119; // [rsp+0h] [rbp-80h]
char v120; // [rsp+0h] [rbp-80h]
__int64 v121; // [rsp+10h] [rbp-70h] BYREF
__int64 v122; // [rsp+18h] [rbp-68h]
__int64 v123; // [rsp+20h] [rbp-60h]
__int64 v124; // [rsp+28h] [rbp-58h]
char GameVariable; // [rsp+37h] [rbp-49h]
__int64 v126; // [rsp+38h] [rbp-48h]
size_t __dst; // [rsp+40h] [rbp-40h] BYREF
size_t v128; // [rsp+48h] [rbp-38h]
void *__p; // [rsp+50h] [rbp-30h]
v1 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v121, v1);
v2 = cocos2d::CCDictionary::create();
v123 = a1;
*(_QWORD *)(a1 + 816) = v2;
v3 = v2;
cocos2d::CCObject::retain((__int64)v2);
v4 = sub_1007FE900(v3);
v5 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v5, "0191");
if ( GameVariable )
{
v6 = v123;
SpriteButton_2 = EditorUI::getSpriteButton_2(
v123,
(__int64)"edit_upBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)SpriteButton_2 + 72LL))(SpriteButton_2, 3);
sub_1007FEBF0(v4, SpriteButton_2);
v8 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_downBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v8 + 72LL))(v8, 4);
sub_1007FEBF0(v4, v8);
v9 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_leftBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v9 + 72LL))(v9, 1);
sub_1007FEBF0(v4, v9);
v10 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_rightBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v10 + 72LL))(v10, 2);
sub_1007FEBF0(v4, v10);
v11 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_upBtn2_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v11 + 72LL))(v11, 7);
sub_1007FEBF0(v4, v11);
v12 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_downBtn2_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v12 + 72LL))(v12, 8);
sub_1007FEBF0(v4, v12);
v13 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_leftBtn2_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v13 + 72LL))(v13, 5);
sub_1007FEBF0(v4, v13);
v14 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_rightBtn2_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v14 + 72LL))(v14, 6);
sub_1007FEBF0(v4, v14);
v15 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_upBtn3_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v15 + 72LL))(v15, 11);
sub_1007FEBF0(v4, v15);
v16 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_downBtn3_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v16 + 72LL))(v16, 12);
sub_1007FEBF0(v4, v16);
v17 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_leftBtn3_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v17 + 72LL))(v17, 9);
sub_1007FEBF0(v4, v17);
v18 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_rightBtn3_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v18 + 72LL))(v18, 10);
sub_1007FEBF0(v4, v18);
v19 = v6;
v20 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_upBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v20 + 72LL))(v20, 15);
sub_1007FEBF0(v4, v20);
v21 = v4;
v22 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_downBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v22 + 72LL))(v22, 16);
sub_1007FEBF0(v21, v22);
v23 = EditorUI::getSpriteButton_2(
v6,
(__int64)"edit_leftBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v23 + 72LL))(v23, 13);
sub_1007FEBF0(v21, v23);
v24 = EditorUI::getSpriteButton_2(
v19,
(__int64)"edit_rightBtn_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v24 + 72LL))(v24, 14);
sub_1007FEBF0(v21, v24);
v25 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v20 + 1072LL))(v20);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v25 + 632) + 160LL))(*(_QWORD *)(v25 + 632), 0.80000001);
v26 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v22 + 1072LL))(v22);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v26 + 632) + 160LL))(*(_QWORD *)(v26 + 632), 0.80000001);
v27 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v23 + 1072LL))(v23);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v27 + 632) + 160LL))(*(_QWORD *)(v27 + 632), 0.80000001);
v28 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v24 + 1072LL))(v24);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v28 + 632) + 160LL))(*(_QWORD *)(v28 + 632), 0.80000001);
v29 = v123;
v30 = EditorUI::getSpriteButton_2(
v123,
(__int64)"edit_upBtn5_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v30 + 72LL))(v30, 19);
sub_1007FEBF0(v21, v30);
v31 = EditorUI::getSpriteButton_2(
v29,
(__int64)"edit_downBtn5_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v31 + 72LL))(v31, 20);
sub_1007FEBF0(v21, v31);
v32 = EditorUI::getSpriteButton_2(
v29,
(__int64)"edit_leftBtn5_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v32 + 72LL))(v32, 17);
sub_1007FEBF0(v21, v32);
v33 = EditorUI::getSpriteButton_2(
v29,
(__int64)"edit_rightBtn5_001.png",
(__int64)EditorUI::moveObjectCall,
0,
0,
0.89999998);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v33 + 72LL))(v33, 18);
sub_1007FEBF0(v21, v33);
LODWORD(v126) = 0;
}
else
{
v34 = cocos2d::CCDirector::sharedDirector();
*(float *)&v126 = sub_100479770(v34) + -96.0;
v35 = cocos2d::CCDirector::sharedDirector();
v36 = sub_100479760(v35);
v37 = (float)((float)(*(float *)&v126 - (float)(v36 + 96.0))
/ fminf((float)(*(float *)&v126 - (float)(v36 + 96.0)) / 299.0, 1.0))
+ -299.0;
*(float *)&v126 = fminf((float)((float)((float)(fminf(v37 / 29.0, 1.0) * -29.0) + v37) / 7.0) + 23.0, 32.0)
/ 0.57499999;
v21 = v4;
}
sub_1002782D0(&__dst, &qword_100BE5A88);
v38 = v123;
SpriteButton_1 = EditorUI::getSpriteButton_1(
v123,
(__int64)"edit_flipXBtn_001.png",
(int)EditorUI::transformObjectCall,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)SpriteButton_1 + 72LL))(SpriteButton_1, 37);
sub_1007FEBF0(v21, SpriteButton_1);
sub_1002782D0(&__dst, &qword_100BE5A88);
v40 = EditorUI::getSpriteButton_1(
v38,
(__int64)"edit_flipYBtn_001.png",
(int)EditorUI::transformObjectCall,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 72LL))(v40, 38);
sub_1007FEBF0(v21, v40);
sub_1002782D0(&__dst, &qword_100BE5A88);
v41 = EditorUI::getSpriteButton_1(
v38,
(__int64)"edit_cwBtn_001.png",
(int)EditorUI::transformObjectCall,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 72LL))(v41, 39);
sub_1007FEBF0(v21, v41);
sub_1002782D0(&__dst, &qword_100BE5A88);
v42 = EditorUI::getSpriteButton_1(
v38,
(__int64)"edit_ccwBtn_001.png",
(int)EditorUI::transformObjectCall,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v42 + 72LL))(v42, 40);
sub_1007FEBF0(v21, v42);
sub_1002782D0(&__dst, &qword_100BE5A88);
v43 = EditorUI::getSpriteButton_1(
v38,
(__int64)"edit_rotate45rBtn_001.png",
(int)EditorUI::transformObjectCall,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v43 + 72LL))(v43, 41);
v122 = v21;
sub_1007FEBF0(v21, v43);
v44 = *(_QWORD *)(v38 + 816);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v43 + 64LL))(v43);
v45 = sub_10088E820("%i", v114);
CString = (const char *)cocos2d::CCString::getCString(v45);
v47 = strlen(CString);
if ( v47 >= 0xFFFFFFFFFFFFFFF8LL )
goto LABEL_77;
v48 = v47;
if ( v47 >= 0x17 )
{
v124 = v44;
v50 = 26;
if ( (v47 | 7) != 0x17 )
v50 = (v47 | 7) + 1;
v49 = (char *)operator new(v50);
__p = v49;
__dst = v50 + 1;
v44 = v124;
v128 = v48;
goto LABEL_11;
}
LOBYTE(__dst) = 2 * v47;
v49 = (char *)&__dst + 1;
if ( v47 )
LABEL_11:
memmove(v49, CString, v48);
v49[v48] = 0;
cocos2d::CCDictionary::setObject(v44, v43, (char *)&__dst);
if ( (__dst & 1) != 0 )
operator delete(__p);
sub_1002782D0(&__dst, &qword_100BE5A88);
v51 = v123;
v52 = EditorUI::getSpriteButton_1(
v123,
(__int64)"edit_rotate45lBtn_001.png",
(int)EditorUI::transformObjectCall,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v52 + 72LL))(v52, 42);
sub_1007FEBF0(v122, v52);
v53 = *(_QWORD *)(v51 + 816);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v52 + 64LL))(v52);
v54 = sub_10088E820("%i", v115);
v55 = (const char *)cocos2d::CCString::getCString(v54);
v56 = strlen(v55);
if ( v56 >= 0xFFFFFFFFFFFFFFF8LL )
LABEL_77:
sub_100003630();
v57 = v56;
if ( v56 >= 0x17 )
{
v124 = v53;
v59 = 26;
if ( (v56 | 7) != 0x17 )
v59 = (v56 | 7) + 1;
v58 = (char *)operator new(v59);
__p = v58;
__dst = v59 + 1;
v53 = v124;
v128 = v57;
goto LABEL_21;
}
LOBYTE(__dst) = 2 * v56;
v58 = (char *)&__dst + 1;
if ( v56 )
LABEL_21:
memmove(v58, v55, v57);
v58[v57] = 0;
cocos2d::CCDictionary::setObject(v53, v52, (char *)&__dst);
if ( (__dst & 1) != 0 )
operator delete(__p);
sub_1002782D0(&__dst, &qword_100BE5A88);
v60 = v123;
v61 = EditorUI::getSpriteButton_1(
v123,
(__int64)"edit_freeRotateBtn_001.png",
(int)EditorUI::activateRotationControl,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 72LL))(v61, 43);
sub_1007FEBF0(v122, v61);
v62 = *(_QWORD *)(v60 + 816);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v61 + 64LL))(v61);
v63 = sub_10088E820("%i", v116);
v64 = (const char *)cocos2d::CCString::getCString(v63);
v65 = strlen(v64);
if ( v65 >= 0xFFFFFFFFFFFFFFF8LL )
goto LABEL_77;
v66 = v65;
if ( v65 >= 0x17 )
{
v124 = v62;
v68 = 26;
if ( (v65 | 7) != 0x17 )
v68 = (v65 | 7) + 1;
v67 = (char *)operator new(v68);
__p = v67;
__dst = v68 + 1;
v62 = v124;
v128 = v66;
goto LABEL_31;
}
LOBYTE(__dst) = 2 * v65;
v67 = (char *)&__dst + 1;
if ( v65 )
LABEL_31:
memmove(v67, v64, v66);
v67[v66] = 0;
cocos2d::CCDictionary::setObject(v62, v61, (char *)&__dst);
if ( (__dst & 1) != 0 )
operator delete(__p);
sub_1002782D0(&__dst, &qword_100BE5A88);
v69 = v123;
v70 = EditorUI::getSpriteButton_1(
v123,
(__int64)"edit_rotateSnapBtn_001.png",
(int)EditorUI::transformObjectCall,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v70 + 72LL))(v70, 44);
sub_1007FEBF0(v122, v70);
v71 = *(_QWORD *)(v69 + 816);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v70 + 64LL))(v70);
v72 = sub_10088E820("%i", v117);
v73 = (const char *)cocos2d::CCString::getCString(v72);
v74 = strlen(v73);
if ( v74 >= 0xFFFFFFFFFFFFFFF8LL )
goto LABEL_77;
v75 = v74;
if ( v74 >= 0x17 )
{
v124 = v71;
v77 = 26;
if ( (v74 | 7) != 0x17 )
v77 = (v74 | 7) + 1;
v76 = (char *)operator new(v77);
__p = v76;
__dst = v77 + 1;
v71 = v124;
v128 = v75;
goto LABEL_41;
}
LOBYTE(__dst) = 2 * v74;
v76 = (char *)&__dst + 1;
if ( v74 )
LABEL_41:
memmove(v76, v73, v75);
v76[v75] = 0;
cocos2d::CCDictionary::setObject(v71, v70, (char *)&__dst);
if ( (__dst & 1) != 0 )
operator delete(__p);
sub_1002782D0(&__dst, &qword_100BE5A88);
v78 = v123;
v79 = EditorUI::getSpriteButton_1(
v123,
(__int64)"edit_scaleBtn_001.png",
(int)EditorUI::activateScaleControl,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v79 + 72LL))(v79, 45);
sub_1007FEBF0(v122, v79);
v80 = *(_QWORD *)(v78 + 816);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v79 + 64LL))(v79);
v81 = sub_10088E820("%i", v118);
v82 = (const char *)cocos2d::CCString::getCString(v81);
v83 = strlen(v82);
if ( v83 >= 0xFFFFFFFFFFFFFFF8LL )
goto LABEL_77;
v84 = v83;
if ( v83 >= 0x17 )
{
v124 = v80;
v86 = 26;
if ( (v83 | 7) != 0x17 )
v86 = (v83 | 7) + 1;
v85 = (char *)operator new(v86);
__p = v85;
__dst = v86 + 1;
v80 = v124;
v128 = v84;
goto LABEL_51;
}
LOBYTE(__dst) = 2 * v83;
v85 = (char *)&__dst + 1;
if ( v83 )
LABEL_51:
memmove(v85, v82, v84);
v85[v84] = 0;
cocos2d::CCDictionary::setObject(v80, v79, (char *)&__dst);
if ( (__dst & 1) != 0 )
operator delete(__p);
sub_1002782D0(&__dst, &qword_100BE5A88);
v87 = v123;
v88 = EditorUI::getSpriteButton_1(
v123,
(__int64)"edit_scaleXYBtn_001.png",
(int)EditorUI::activateScaleControl,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v88 + 72LL))(v88, 46);
sub_1007FEBF0(v122, v88);
v89 = *(_QWORD *)(v87 + 816);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v88 + 64LL))(v88);
v90 = sub_10088E820("%i", v119);
v91 = (const char *)cocos2d::CCString::getCString(v90);
v92 = strlen(v91);
if ( v92 >= 0xFFFFFFFFFFFFFFF8LL )
goto LABEL_77;
v93 = v92;
if ( v92 >= 0x17 )
{
v124 = v89;
v95 = 26;
if ( (v92 | 7) != 0x17 )
v95 = (v92 | 7) + 1;
v94 = (char *)operator new(v95);
__p = v94;
__dst = v95 + 1;
v89 = v124;
v128 = v93;
goto LABEL_61;
}
LOBYTE(__dst) = 2 * v92;
v94 = (char *)&__dst + 1;
if ( v92 )
LABEL_61:
memmove(v94, v91, v93);
v94[v93] = 0;
cocos2d::CCDictionary::setObject(v89, v88, (char *)&__dst);
if ( (__dst & 1) != 0 )
operator delete(__p);
sub_1002782D0(&__dst, &qword_100BE5A88);
v96 = v123;
v97 = EditorUI::getSpriteButton_1(
v123,
(__int64)"edit_warpBtn_001.png",
(int)EditorUI::activateTransformControl,
0,
0,
1,
0.89999998,
*(float *)&v126,
(__int64)&__dst);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v97 + 72LL))(v97, 47);
sub_1007FEBF0(v122, v97);
v98 = *(_QWORD *)(v96 + 816);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v97 + 64LL))(v97);
v99 = sub_10088E820("%i", v120);
v100 = (const char *)cocos2d::CCString::getCString(v99);
v101 = strlen(v100);
if ( v101 >= 0xFFFFFFFFFFFFFFF8LL )
goto LABEL_77;
v102 = v101;
if ( v101 >= 0x17 )
{
v126 = v98;
v104 = 26;
if ( (v101 | 7) != 0x17 )
v104 = (v101 | 7) + 1;
v103 = (char *)operator new(v104);
__p = v103;
__dst = v104 + 1;
v98 = v126;
v128 = v102;
goto LABEL_71;
}
LOBYTE(__dst) = 2 * v101;
v103 = (char *)&__dst + 1;
if ( v101 )
LABEL_71:
memmove(v103, v100, v102);
v103[v102] = 0;
cocos2d::CCDictionary::setObject(v98, v97, (char *)&__dst);
if ( (__dst & 1) != 0 )
operator delete(__p);
if ( !GameVariable )
return EditorUI::createDpadMoveMenu(v123, v122);
v105 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v105, "0049");
v107 = GameManager::sharedState();
v108 = GameManager::getIntGameVariable(v107, "0050");
*(float *)&v126 = *(float *)&v121 * 0.5;
v109 = cocos2d::CCDirector::sharedDirector();
v110 = sub_100479750(v109);
v111 = (_QWORD *)v123;
sub_100278250((float *)&__dst, *(float *)&v126, (float)(v110 + *(float *)(v123 + 856)) + -6.0);
v112 = EditButtonBar::create(v122, &__dst, 0, 0, IntGameVariable, v108);
v111[104] = v112;
return (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64))(*v111 + 464LL))(v111, v112, 10);
}