.file "what.c" .text .globl what .type what, @function what: .LFB0: pushq %rbp movq %rsp, %rbp movq %rdi, -24(%rbp) movl %esi, -28(%rbp) movl $1, -12(%rbp) jmp .L2 .L8: movl -12(%rbp), %eax cltq leaq 0(,%rax,4), %rdx movq -24(%rbp), %rax addq %rdx, %rax movl (%rax), %eax movl %eax, -4(%rbp) movl -12(%rbp), %eax subl $1, %eax movl %eax, -8(%rbp) jmp .L3 .L7: movl -8(%rbp), %eax cltq leaq 0(,%rax,4), %rdx movq -24(%rbp), %rax addq %rdx, %rax movl (%rax), %eax cmpl %eax, -4(%rbp) jle .L9 movl -8(%rbp), %eax cltq leaq 0(,%rax,4), %rdx movq -24(%rbp), %rax addq %rdx, %rax movl -8(%rbp), %edx movslq %edx, %rdx addq $1, %rdx leaq 0(,%rdx,4), %rcx movq -24(%rbp), %rdx addq %rcx, %rdx movl (%rax), %eax movl %eax, (%rdx) subl $1, -8(%rbp) .L3: cmpl $0, -8(%rbp) jns .L7 jmp .L6 .L9: nop .L6: movl -8(%rbp), %eax cltq addq $1, %rax leaq 0(,%rax,4), %rdx movq -24(%rbp), %rax addq %rax, %rdx movl -4(%rbp), %eax movl %eax, (%rdx) addl $1, -12(%rbp) .L2: movl -12(%rbp), %eax cmpl -28(%rbp), %eax jl .L8 nop popq %rbp ret .LFE0: .size what, .-what .ident "GCC: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0" .section .note.GNU-stack,"",@progbits