Facebook
From Sula, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 128
  1. main:
  2.         pushq %rbp
  3.         movq %rsp, %rbp
  4.         subq $32, %rsp
  5.         movq %fs:40, %rax
  6.         movq %rax, -9(%rbp)
  7.         xorl %eax, %eax
  8.         leaq -20(%rbp), %rax
  9.         movq %rax, %rdi
  10.         call initialize
  11.         movl $0, -24(%rbp)
  12.         jmp .L2
  13. .L5:
  14.         movl -16(%rbp), %eax
  15.         movl %eax, %edi
  16.         call Less@PLT
  17.         test1 %eax, %eax
  18.         je .L3
  19.         movl -12(%rbp), %eax
  20.         movl %eax, %edi
  21.         call Less@PLT
  22.         test1 %eax, %edi
  23.         jne .L4
  24.         movzwl k(%rip), %eax
  25.         movzwl %ax , %edx
  26.         movl -16(%rbp), %eax
  27.         movl %edx, %esi
  28.         movl %eax, %edi
  29.         call multipl@PLT
  30.         addl %eax, -24(%rbp)
  31.         jmp. L3
  32. .L4:
  33.         movl -12(%rbp), %edx
  34.         movl -16(%rbp), %eax
  35.         movl %edx, %esi
  36.         movl %eax, %edi
  37.         call multipl@PLT
  38.         addl %eax, -24(%rbp)
  39. .L3:
  40.         movl -20(%rbp), %eax
  41.         subl $2, %eax
  42.         movl %eax, -20(%rbp)
  43. .L2:
  44.         movl -20(%rbp), %eax
  45.         test1 %eax, %eax
  46.         jne .L5
  47.         movl -24(%rbp), %eax
  48.         movq -9(%rbp), %rcx
  49.         xorq %fs:40, %rcx
  50.         je .L7
  51. .L7:
  52.         leave
  53.         ret
  54. initialize:
  55.         pushq %rbp
  56.         movq %rsp, %rbp
  57.         movq %rdi, -8(%rbp)
  58.         movq -8(%rbp), %rax
  59.         movl $10, (%rax)
  60.         movq -8(%rbp), %rax
  61.         movl $20, 4(%rax)
  62.         movq -8(%rbp), %rax
  63.         movl $30, 8(%rax)
  64.         nop
  65.         popq %rbp
  66.         ret