.file "max64.s" .text .globl max max: # int max(int a, int b) pushq %rbp # save frame pointer in stack movq %rsp, %rbp # new FP points to old FP in stack movl %edi, %eax # ax := a movl %esi, %edx # dx := b cmpl %edx, %eax # cc0 := a - b jge L0 # if result >= 0 goto L0 (ge = greater or equal) movl %edx, %eax # ax := b L0: movq %rbp, %rsp # top of stack := FP popq %rbp # restore old FP ret