Advertisement
Guest User

Untitled

a guest
Jan 15th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. strchr_shitstyle:
  2. .LFB42:
  3. .cfi_startproc
  4. pushl %ebx
  5. .cfi_def_cfa_offset 8
  6. .cfi_offset 3, -8
  7. movl 12(%esp), %ecx
  8. movl 8(%esp), %eax
  9. movl 16(%esp), %edx
  10. testl %ecx, %ecx
  11. je .L5
  12. cmpb %dl, (%eax)
  13. je .L7
  14. movl %edx, %ebx
  15. addl %eax, %ecx
  16. leal 1(%eax), %edx
  17. jmp .L3
  18. .p2align 4,,10
  19. .p2align 3
  20. .L4:
  21. movl %edx, %eax
  22. addl $1, %edx
  23. cmpb %bl, -1(%edx)
  24. je .L7
  25. .L3:
  26. cmpl %ecx, %edx
  27. jne .L4
  28. .L5:
  29. xorl %eax, %eax
  30. .L7:
  31. popl %ebx
  32. .cfi_restore 3
  33. .cfi_def_cfa_offset 4
  34. ret
  35. .cfi_endproc
  36. .LFE42:
  37. .size strchr_shitstyle, .-strchr_shitstyle
  38. .p2align 4,,15
  39. .globl strchr_normstyle
  40. .type strchr_normstyle, @function
  41. strchr_normstyle:
  42. .LFB43:
  43. .cfi_startproc
  44. movl 4(%esp), %edx
  45. movl 8(%esp), %ecx
  46. movzbl 12(%esp), %eax
  47. jmp .L13
  48. .p2align 4,,10
  49. .p2align 3
  50. .L18:
  51. addl $1, %edx
  52. cmpl %ecx, %edx
  53. je .L17
  54. .L13:
  55. cmpb %al, (%edx)
  56. jne .L18
  57. xorl %eax, %eax
  58. cmpl %ecx, %edx
  59. cmovne %edx, %eax
  60. ret
  61. .p2align 4,,10
  62. .p2align 3
  63. .L17:
  64. xorl %eax, %eax
  65. ret
  66. .cfi_endproc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement