Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "main.c"
- .intel_syntax noprefix
- .text
- .globl comp
- .type comp, @function
- comp:
- .LFB0:
- .cfi_startproc
- push rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- mov rbp, rsp
- .cfi_def_cfa_register 6
- mov QWORD PTR -24[rbp], rdi
- mov QWORD PTR -32[rbp], rsi
- mov DWORD PTR -4[rbp], 1
- jmp .L2
- .L5:
- mov rax, QWORD PTR -24[rbp]
- movzx edx, BYTE PTR [rax]
- mov rax, QWORD PTR -32[rbp]
- movzx eax, BYTE PTR [rax]
- cmp dl, al
- je .L3
- mov DWORD PTR -4[rbp], 0
- jmp .L4
- .L3:
- add QWORD PTR -24[rbp], 1
- add QWORD PTR -32[rbp], 1
- .L2:
- mov rax, QWORD PTR -24[rbp]
- movzx eax, BYTE PTR [rax]
- test al, al
- je .L4
- mov rax, QWORD PTR -32[rbp]
- movzx eax, BYTE PTR [rax]
- test al, al
- jne .L5
- .L4:
- mov eax, DWORD PTR -4[rbp]
- pop rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE0:
- .size comp, .-comp
- .ident "GCC: (Debian 6.3.0-18) 6.3.0 20170516"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement