// // EditorUI::moveForCommand from 0x10004a270 to 0x10004a3f1 (385 bytes) // // 1 xrefs: // > EditorUI::moveObjectCall_1 @ 0x10004a4af // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! cocos2d::CCPoint __fastcall EditorUI::moveForCommand(EditorUI *a1, EditCommand a2) { int v2; // edx int v3; // r14d float v5; // xmm4_4 float v6; // xmm2_4 float v7; // xmm3_4 float v8; // xmm0_4 float v9; // xmm1_4 float v10; // [rsp+0h] [rbp-30h] _BYTE v11[24]; // [rsp+18h] [rbp-18h] BYREF cocos2d::CCPoint result; // 0:xmm0_8.8 v3 = v2; result = (cocos2d::CCPoint)*(unsigned int *)(*(_QWORD *)&a2 + 608LL); v10 = *(float *)(*(_QWORD *)&a2 + 608LL); sub_10028CC30(a1); v5 = v10; v6 = 5.0 * v10; v7 = 0.5 * v10; switch ( v3 ) { case 1: v8 = -2.0; goto LABEL_21; case 2: v8 = 2.0; goto LABEL_21; case 3: v9 = 2.0; goto LABEL_12; case 4: v9 = -2.0; goto LABEL_12; case 5: v5 = -v10; goto LABEL_19; case 6: LABEL_19: v9 = 0.0; v8 = v5; goto LABEL_24; case 7: goto LABEL_14; case 8: v5 = -v10; LABEL_14: v8 = 0.0; v9 = v5; goto LABEL_24; case 9: v6 = -v6; goto LABEL_8; case 10: LABEL_8: v9 = 0.0; v8 = v6; goto LABEL_24; case 11: goto LABEL_5; case 12: v6 = -v6; LABEL_5: v8 = 0.0; v9 = v6; goto LABEL_24; case 13: v8 = -0.5; goto LABEL_21; case 14: v8 = 0.5; LABEL_21: v9 = 0.0; goto LABEL_24; case 15: v9 = 0.5; goto LABEL_12; case 16: v9 = -0.5; LABEL_12: v8 = 0.0; goto LABEL_24; case 17: v7 = -v7; goto LABEL_17; case 18: LABEL_17: v9 = 0.0; v8 = v7; goto LABEL_24; case 19: goto LABEL_23; case 20: v7 = -v7; LABEL_23: v8 = 0.0; v9 = v7; LABEL_24: sub_10028CBE0(v11, v8, v9); *(double *)&result = sub_10028CC90(); break; default: return result; } return result; }