I don't understand what this assembly code does.
imul -0x8(%rsp, %rbx, 4), %eax
cmp %eax, -0x4(%rsp, %rbx, 4)
I get what the instructions imul and cmp do, but I don't understand what -0x4(%rsp, %rbx, 4) and -0x8(%rsp, %rbx, 4) means. I can provide more context if needed, but what I really want is just a literal translation of these two lines. What is being stored on in %eax on the first line? The product of %rbx*4 and %rsp - 8?