.file "main.c"
.text
.section .rodata
.LC0:
.string "%lld\n"
.LC2:
.string "Elapsed time: %f"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $64, %rsp
leaq -48(%rbp), %rax
movl $1, %esi
movq %rax, %rdi
call timespec_get
movq $0, -8(%rbp)
movq $0, -16(%rbp)
jmp .L2
.L3:
movq -16(%rbp), %rax
addq %rax, -8(%rbp)
addq $1, -16(%rbp)
.L2:
cmpq $999999999, -16(%rbp)
jle .L3
movq -8(%rbp), %rax
movq %rax, %rsi
movl $.LC0, %edi
movl $0, %eax
call printf
leaq -64(%rbp), %rax
movl $1, %esi
movq %rax, %rdi
call timespec_get
movq -64(%rbp), %rdx
movq -48(%rbp), %rax
subq %rax, %rdx
movq %rdx, %rax
cvtsi2ssq %rax, %xmm0
cvtss2sd %xmm0, %xmm1
movq -56(%rbp), %rdx
movq -40(%rbp), %rax
subq %rax, %rdx
movq %rdx, %rax
cvtsi2ssq %rax, %xmm0
cvtss2sd %xmm0, %xmm0
movsd .LC1(%rip), %xmm2
divsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm3
movss %xmm3, -20(%rbp)
cvtss2sd -20(%rbp), %xmm0
movl $.LC2, %edi
movl $1, %eax
call pri