1. Write the ASM code for the C++ code below. Assume A, B, C, D, and E are stored in X19, X20, X21, X22, and
X23, respectively, and are of type long long int (64 bits). Assume the result fits within a 64-bit register and
no data memory is access required. (14 pts)
E = (A + B + C)*D - E;
2. Write the ASM code for the C++ code below. Assume x, y, and temp are stored in X19, X20, and X21,
respectively, and are of type long long int (64 bits). (14 pts)
// SWAP function for 2 variables
temp = x;
x = y;
y = temp;