//
// EditorUI::moveForCommand from 0xbffe98 to 0xc0020c (884 bytes)
//
// 2 xrefs:
// > EditorUI::moveObjectCall @ 0xc0251c
// > ??> @ 0xf6940
//
// 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 13:03:48 +0000
//
cocos2d::CCPoint *__usercall EditorUI::moveForCommand@(__int64 a1@, int a2@, cocos2d::CCPoint *a3@)
{
float v4; // s8
float v5; // s13
float v6; // s12
float v7; // s11
float v8; // s10
float v9; // s9
float v10; // s0
float v11; // s1
_BYTE v14[8]; // [xsp+60h] [xbp+60h] BYREF
v4 = *(float *)(a1 + 648);
v5 = v4 * 5.0;
v6 = v4 * 0.5;
v7 = v4 * 0.25;
v8 = v4 * 0.125;
v9 = *(float *)(a1 + 1632) * 3.0;
cocos2d::CCPoint::CCPoint(a3);
switch ( a2 )
{
case 1:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -2.0, 0.0);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 2:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 2.0, 0.0);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 3:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, 2.0);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 4:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 5:
v10 = -v4;
goto LABEL_6;
case 6:
v10 = v4;
goto LABEL_6;
case 7:
v10 = 0.0;
v11 = v4;
goto LABEL_3;
case 8:
v10 = 0.0;
v11 = -v4;
goto LABEL_3;
case 9:
v10 = -v5;
goto LABEL_6;
case 10:
v10 = v4 * 5.0;
goto LABEL_6;
case 11:
v10 = 0.0;
v11 = v4 * 5.0;
goto LABEL_3;
case 12:
v10 = 0.0;
v11 = -v5;
goto LABEL_3;
case 13:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -0.5, 0.0);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 14:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.5, 0.0);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 15:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, 0.5);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 16:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -0.5);
cocos2d::CCPoint::operator=(a3, v14);
return a3;
case 17:
v10 = -v6;
goto LABEL_6;
case 18:
v10 = v4 * 0.5;
goto LABEL_6;
case 19:
v10 = 0.0;
v11 = v4 * 0.5;
goto LABEL_3;
case 20:
v10 = 0.0;
v11 = -v6;
goto LABEL_3;
case 21:
v10 = -v7;
goto LABEL_6;
case 22:
v10 = v4 * 0.25;
goto LABEL_6;
case 23:
v10 = 0.0;
v11 = v4 * 0.25;
goto LABEL_3;
case 24:
v10 = 0.0;
v11 = -v7;
goto LABEL_3;
case 25:
v10 = -0.1;
goto LABEL_6;
case 26:
v10 = 0.1;
goto LABEL_6;
case 27:
v10 = 0.0;
v11 = 0.1;
goto LABEL_3;
case 28:
v10 = 0.0;
v11 = -0.1;
goto LABEL_3;
case 29:
v10 = -v8;
goto LABEL_6;
case 30:
v10 = v4 * 0.125;
goto LABEL_6;
case 31:
v10 = 0.0;
v11 = v4 * 0.125;
goto LABEL_3;
case 32:
v10 = 0.0;
v11 = -v8;
goto LABEL_3;
case 33:
v10 = -v9;
goto LABEL_6;
case 34:
v10 = v9;
LABEL_6:
v11 = 0.0;
goto LABEL_3;
case 35:
v10 = 0.0;
v11 = v9;
goto LABEL_3;
case 36:
v10 = 0.0;
v11 = -v9;
LABEL_3:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v10, v11);
cocos2d::CCPoint::operator=(a3, v14);
break;
default:
return a3;
}
return a3;
}