//
// EditorUI::createMoveMenu from 0x100185330 to 0x1001860c4 (3476 bytes)
//
// 2 xrefs:
// > EditorUI::setupEditMenu @ 0x10018531c
// > EditorUI::recreateButtonTabs @ 0x1001881e8
//
// 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 10:59:50 +0000
//
__int64 __fastcall EditorUI::createMoveMenu(__int64 a1)
{
__int64 v2; // x0
_QWORD *WinSize; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x0
__n128 GameVariable; // q0
int v9; // w0
int v10; // w21
__int64 v11; // x24
__int64 v12; // x25
__int64 v13; // x26
__int64 v14; // x27
__int64 v15; // x27
__int64 v16; // x27
__int64 v17; // x27
__int64 v18; // x27
__int64 v19; // x27
__int64 v20; // x27
__int64 v21; // x27
__int64 v22; // x27
__int64 v23; // x23
__int64 v24; // x24
__int64 v25; // x25
__int64 v26; // x26
__n128 v27; // q0
__int64 v28; // x0
__int64 v29; // x0
__int64 v30; // x0
__int64 v31; // x0
__int64 v32; // x23
__int64 v33; // x23
__int64 v34; // x23
__int64 v35; // x22
float v36; // s8
float v37; // s0
float v38; // s0
__int64 SpriteButton_1; // x24
__int64 v40; // x24
__int64 v41; // x24
__int64 v42; // x24
__int64 v43; // x22
__n128 v44; // q0
__int64 v45; // x23
int v46; // w0
__int64 v47; // x0
char *CString; // x0
__int64 v49; // x22
__n128 v50; // q0
__int64 v51; // x23
int v52; // w0
__int64 v53; // x0
char *v54; // x0
__int64 v55; // x22
__n128 v56; // q0
__int64 v57; // x23
int v58; // w0
__int64 v59; // x0
char *v60; // x0
__int64 v61; // x22
__n128 v62; // q0
__int64 v63; // x23
int v64; // w0
__int64 v65; // x0
char *v66; // x0
__int64 v67; // x22
__n128 v68; // q0
__int64 v69; // x23
int v70; // w0
__int64 v71; // x0
char *v72; // x0
__int64 v73; // x22
__n128 v74; // q0
__int64 v75; // x23
int v76; // w0
__int64 v77; // x0
char *v78; // x0
__int64 v79; // x22
__n128 v80; // q0
__int64 v81; // x23
int v82; // w0
__int64 v83; // x0
char *v84; // x0
__int64 v85; // x0
__int64 v86; // x0
__int64 IntGameVariable; // x21
__int64 v88; // x0
__int64 v89; // x22
float v90; // s8
__int64 v91; // x0
float v92; // s0
__int64 v93; // x0
void *__p[2]; // [xsp+10h] [xbp-80h] BYREF
char v96; // [xsp+27h] [xbp-69h]
__int64 v97; // [xsp+28h] [xbp-68h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
WinSize = cocos2d::CCDirector::getWinSize(&v97, v2);
v4 = cocos2d::CCDictionary::create(WinSize);
*(_QWORD *)(a1 + 816) = v4;
v5 = cocos2d::CCObject::retain(v4);
v6 = sub_1002E736C(v5);
v7 = GameManager::sharedState(v6);
GameVariable = GameManager::getGameVariable(v7, "0191");
v10 = v9;
if ( v9 )
{
v11 = sub_100470B5C(a1, "edit_upBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 72LL))(v11, 3);
sub_1002E74E0(v6, v11);
v12 = sub_100470B5C(a1, "edit_downBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 72LL))(v12, 4);
sub_1002E74E0(v6, v12);
v13 = sub_100470B5C(a1, "edit_leftBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 72LL))(v13, 1);
sub_1002E74E0(v6, v13);
v14 = sub_100470B5C(a1, "edit_rightBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 72LL))(v14, 2);
sub_1002E74E0(v6, v14);
v15 = sub_100470B5C(a1, "edit_upBtn2_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 72LL))(v15, 7);
sub_1002E74E0(v6, v15);
v16 = sub_100470B5C(a1, "edit_downBtn2_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 72LL))(v16, 8);
sub_1002E74E0(v6, v16);
v17 = sub_100470B5C(a1, "edit_leftBtn2_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 72LL))(v17, 5);
sub_1002E74E0(v6, v17);
v18 = sub_100470B5C(a1, "edit_rightBtn2_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 72LL))(v18, 6);
sub_1002E74E0(v6, v18);
v19 = sub_100470B5C(a1, "edit_upBtn3_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 72LL))(v19, 11);
sub_1002E74E0(v6, v19);
v20 = sub_100470B5C(a1, "edit_downBtn3_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 72LL))(v20, 12);
sub_1002E74E0(v6, v20);
v21 = sub_100470B5C(a1, "edit_leftBtn3_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 72LL))(v21, 9);
sub_1002E74E0(v6, v21);
v22 = sub_100470B5C(a1, "edit_rightBtn3_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 72LL))(v22, 10);
sub_1002E74E0(v6, v22);
v23 = sub_100470B5C(a1, "edit_upBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 72LL))(v23, 15);
sub_1002E74E0(v6, v23);
v24 = sub_100470B5C(a1, "edit_downBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v24 + 72LL))(v24, 16);
sub_1002E74E0(v6, v24);
v25 = sub_100470B5C(a1, "edit_leftBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 72LL))(v25, 13);
sub_1002E74E0(v6, v25);
v26 = sub_100470B5C(a1, "edit_rightBtn_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 72LL))(v26, 14);
v27 = sub_1002E74E0(v6, v26);
v28 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v23 + 1072LL))(v23, v27);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v28 + 632) + 160LL))(*(_QWORD *)(v28 + 632), 0.8);
v29 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 1072LL))(v24);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v29 + 632) + 160LL))(*(_QWORD *)(v29 + 632), 0.8);
v30 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 1072LL))(v25);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v30 + 632) + 160LL))(*(_QWORD *)(v30 + 632), 0.8);
v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v26 + 1072LL))(v26);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v31 + 632) + 160LL))(*(_QWORD *)(v31 + 632), 0.8);
v32 = sub_100470B5C(a1, "edit_upBtn5_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v32 + 72LL))(v32, 19);
sub_1002E74E0(v6, v32);
v33 = sub_100470B5C(a1, "edit_downBtn5_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 72LL))(v33, 20);
sub_1002E74E0(v6, v33);
v34 = sub_100470B5C(a1, "edit_leftBtn5_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v34 + 72LL))(v34, 17);
sub_1002E74E0(v6, v34);
v35 = sub_100470B5C(a1, "edit_rightBtn5_001.png", EditorUI::moveObjectCall, 0, 0, 0.9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 72LL))(v35, 18);
sub_1002E74E0(v6, v35);
v36 = 0.0;
}
else
{
v37 = sub_1001860F8(GameVariable);
v38 = (float)(v37 / fminf(v37 / 299.0, 1.0)) + -299.0;
v36 = fminf((float)((float)(v38 + (float)(fminf(v38 / 29.0, 1.0) * -29.0)) / 7.0) + 23.0, 32.0) / 0.575;
}
sub_1000262F4(__p, &dbl_1009F40A0);
SpriteButton_1 = EditorUI::getSpriteButton_1(
a1,
"edit_flipXBtn_001.png",
EditorUI::transformObjectCall,
0,
0,
1,
__p,
0.9,
v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)SpriteButton_1 + 72LL))(SpriteButton_1, 37);
sub_1002E74E0(v6, SpriteButton_1);
sub_1000262F4(__p, &dbl_1009F40A0);
v40 = EditorUI::getSpriteButton_1(a1, "edit_flipYBtn_001.png", EditorUI::transformObjectCall, 0, 0, 1, __p, 0.9, v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 72LL))(v40, 38);
sub_1002E74E0(v6, v40);
sub_1000262F4(__p, &dbl_1009F40A0);
v41 = EditorUI::getSpriteButton_1(a1, "edit_cwBtn_001.png", EditorUI::transformObjectCall, 0, 0, 1, __p, 0.9, v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 72LL))(v41, 39);
sub_1002E74E0(v6, v41);
sub_1000262F4(__p, &dbl_1009F40A0);
v42 = EditorUI::getSpriteButton_1(a1, "edit_ccwBtn_001.png", EditorUI::transformObjectCall, 0, 0, 1, __p, 0.9, v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v42 + 72LL))(v42, 40);
sub_1002E74E0(v6, v42);
sub_1000262F4(__p, &dbl_1009F40A0);
v43 = EditorUI::getSpriteButton_1(
a1,
"edit_rotate45rBtn_001.png",
EditorUI::transformObjectCall,
0,
0,
1,
__p,
0.9,
v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v43 + 72LL))(v43, 41);
v44 = sub_1002E74E0(v6, v43);
v45 = *(_QWORD *)(a1 + 816);
v46 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v43 + 64LL))(v43, v44);
v47 = sub_1003065B0("%i", v46);
CString = (char *)cocos2d::CCString::getCString(v47);
sub_100009900(__p, CString);
cocos2d::CCDictionary::setObject(v45, v43, __p);
if ( v96 < 0 )
operator delete(__p[0]);
sub_1000262F4(__p, &dbl_1009F40A0);
v49 = EditorUI::getSpriteButton_1(
a1,
"edit_rotate45lBtn_001.png",
EditorUI::transformObjectCall,
0,
0,
1,
__p,
0.9,
v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v49 + 72LL))(v49, 42);
v50 = sub_1002E74E0(v6, v49);
v51 = *(_QWORD *)(a1 + 816);
v52 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v49 + 64LL))(v49, v50);
v53 = sub_1003065B0("%i", v52);
v54 = (char *)cocos2d::CCString::getCString(v53);
sub_100009900(__p, v54);
cocos2d::CCDictionary::setObject(v51, v49, __p);
if ( v96 < 0 )
operator delete(__p[0]);
sub_1000262F4(__p, &dbl_1009F40A0);
v55 = EditorUI::getSpriteButton_1(
a1,
"edit_freeRotateBtn_001.png",
EditorUI::activateRotationControl,
0,
0,
1,
__p,
0.9,
v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v55 + 72LL))(v55, 43);
v56 = sub_1002E74E0(v6, v55);
v57 = *(_QWORD *)(a1 + 816);
v58 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v55 + 64LL))(v55, v56);
v59 = sub_1003065B0("%i", v58);
v60 = (char *)cocos2d::CCString::getCString(v59);
sub_100009900(__p, v60);
cocos2d::CCDictionary::setObject(v57, v55, __p);
if ( v96 < 0 )
operator delete(__p[0]);
sub_1000262F4(__p, &dbl_1009F40A0);
v61 = EditorUI::getSpriteButton_1(
a1,
"edit_rotateSnapBtn_001.png",
EditorUI::transformObjectCall,
0,
0,
1,
__p,
0.9,
v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 72LL))(v61, 44);
v62 = sub_1002E74E0(v6, v61);
v63 = *(_QWORD *)(a1 + 816);
v64 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v61 + 64LL))(v61, v62);
v65 = sub_1003065B0("%i", v64);
v66 = (char *)cocos2d::CCString::getCString(v65);
sub_100009900(__p, v66);
cocos2d::CCDictionary::setObject(v63, v61, __p);
if ( v96 < 0 )
operator delete(__p[0]);
sub_1000262F4(__p, &dbl_1009F40A0);
v67 = EditorUI::getSpriteButton_1(a1, "edit_scaleBtn_001.png", EditorUI::activateScaleControl, 0, 0, 1, __p, 0.9, v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v67 + 72LL))(v67, 45);
v68 = sub_1002E74E0(v6, v67);
v69 = *(_QWORD *)(a1 + 816);
v70 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v67 + 64LL))(v67, v68);
v71 = sub_1003065B0("%i", v70);
v72 = (char *)cocos2d::CCString::getCString(v71);
sub_100009900(__p, v72);
cocos2d::CCDictionary::setObject(v69, v67, __p);
if ( v96 < 0 )
operator delete(__p[0]);
sub_1000262F4(__p, &dbl_1009F40A0);
v73 = EditorUI::getSpriteButton_1(
a1,
"edit_scaleXYBtn_001.png",
EditorUI::activateScaleControl,
0,
0,
1,
__p,
0.9,
v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 72LL))(v73, 46);
v74 = sub_1002E74E0(v6, v73);
v75 = *(_QWORD *)(a1 + 816);
v76 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v73 + 64LL))(v73, v74);
v77 = sub_1003065B0("%i", v76);
v78 = (char *)cocos2d::CCString::getCString(v77);
sub_100009900(__p, v78);
cocos2d::CCDictionary::setObject(v75, v73, __p);
if ( v96 < 0 )
operator delete(__p[0]);
sub_1000262F4(__p, &dbl_1009F40A0);
v79 = EditorUI::getSpriteButton_1(
a1,
"edit_warpBtn_001.png",
EditorUI::activateTransformControl,
0,
0,
1,
__p,
0.9,
v36);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v79 + 72LL))(v79, 47);
v80 = sub_1002E74E0(v6, v79);
v81 = *(_QWORD *)(a1 + 816);
v82 = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v79 + 64LL))(v79, v80);
v83 = sub_1003065B0("%i", v82);
v84 = (char *)cocos2d::CCString::getCString(v83);
sub_100009900(__p, v84);
v85 = cocos2d::CCDictionary::setObject(v81, v79, __p);
if ( v96 < 0 )
{
operator delete(__p[0]);
if ( v10 )
goto LABEL_18;
}
else if ( v10 )
{
LABEL_18:
v86 = GameManager::sharedState(v85);
IntGameVariable = GameManager::getIntGameVariable(v86, "0049");
v88 = GameManager::sharedState(IntGameVariable);
v89 = GameManager::getIntGameVariable(v88, "0050");
v90 = *(float *)&v97 * 0.5;
v91 = cocos2d::CCDirector::sharedDirector(v89);
v92 = sub_100207EA0(v91);
sub_1000262BC((float *)__p, v90, (float)(v92 + *(float *)(a1 + 856)) + -6.0);
v93 = EditButtonBar::create(v6, __p, 0, 0, IntGameVariable, v89);
*(_QWORD *)(a1 + 832) = v93;
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v93, 10);
}
return sub_100186174(a1, v6);
}