Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "main.c"
  2.     .intel_syntax noprefix
  3.     .text
  4.     .globl  comp
  5.     .type   comp, @function
  6. comp:
  7. .LFB0:
  8.     .cfi_startproc
  9.     push    rbp
  10.     .cfi_def_cfa_offset 16
  11.     .cfi_offset 6, -16
  12.     mov rbp, rsp
  13.     .cfi_def_cfa_register 6
  14.     mov QWORD PTR -24[rbp], rdi
  15.     mov QWORD PTR -32[rbp], rsi
  16.     mov DWORD PTR -4[rbp], 1
  17.     jmp .L2
  18. .L5:
  19.     mov rax, QWORD PTR -24[rbp]
  20.     movzx   edx, BYTE PTR [rax]
  21.     mov rax, QWORD PTR -32[rbp]
  22.     movzx   eax, BYTE PTR [rax]
  23.     cmp dl, al
  24.     je  .L3
  25.     mov DWORD PTR -4[rbp], 0
  26.     jmp .L4
  27. .L3:
  28.     add QWORD PTR -24[rbp], 1
  29.     add QWORD PTR -32[rbp], 1
  30. .L2:
  31.     mov rax, QWORD PTR -24[rbp]
  32.     movzx   eax, BYTE PTR [rax]
  33.     test    al, al
  34.     je  .L4
  35.     mov rax, QWORD PTR -32[rbp]
  36.     movzx   eax, BYTE PTR [rax]
  37.     test    al, al
  38.     jne .L5
  39. .L4:
  40.     mov eax, DWORD PTR -4[rbp]
  41.     pop rbp
  42.     .cfi_def_cfa 7, 8
  43.     ret
  44.     .cfi_endproc
  45. .LFE0:
  46.     .size   comp, .-comp
  47.     .ident  "GCC: (Debian 6.3.0-18) 6.3.0 20170516"
  48.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement