Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strchr_shitstyle:
- .LFB42:
- .cfi_startproc
- pushl %ebx
- .cfi_def_cfa_offset 8
- .cfi_offset 3, -8
- movl 12(%esp), %ecx
- movl 8(%esp), %eax
- movl 16(%esp), %edx
- testl %ecx, %ecx
- je .L5
- cmpb %dl, (%eax)
- je .L7
- movl %edx, %ebx
- addl %eax, %ecx
- leal 1(%eax), %edx
- jmp .L3
- .p2align 4,,10
- .p2align 3
- .L4:
- movl %edx, %eax
- addl $1, %edx
- cmpb %bl, -1(%edx)
- je .L7
- .L3:
- cmpl %ecx, %edx
- jne .L4
- .L5:
- xorl %eax, %eax
- .L7:
- popl %ebx
- .cfi_restore 3
- .cfi_def_cfa_offset 4
- ret
- .cfi_endproc
- .LFE42:
- .size strchr_shitstyle, .-strchr_shitstyle
- .p2align 4,,15
- .globl strchr_normstyle
- .type strchr_normstyle, @function
- strchr_normstyle:
- .LFB43:
- .cfi_startproc
- movl 4(%esp), %edx
- movl 8(%esp), %ecx
- movzbl 12(%esp), %eax
- jmp .L13
- .p2align 4,,10
- .p2align 3
- .L18:
- addl $1, %edx
- cmpl %ecx, %edx
- je .L17
- .L13:
- cmpb %al, (%edx)
- jne .L18
- xorl %eax, %eax
- cmpl %ecx, %edx
- cmovne %edx, %eax
- ret
- .p2align 4,,10
- .p2align 3
- .L17:
- xorl %eax, %eax
- ret
- .cfi_endproc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement