clarify the purpose of this project
[nyanglibc.git] / posix / glob_pattern_p.shared.s
blobc65c9864fdc7609f0067b32644f88e034da67749
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __glob_pattern_p
9 .type __glob_pattern_p, @function
10 __glob_pattern_p:
11 movzbl (%rdi), %eax
12 testb %al, %al
13 je .L12
14 xorl %edx, %edx
15 cmpb $91, %al
16 je .L4
17 .L27:
18 jle .L26
19 cmpb $92, %al
20 je .L6
21 cmpb $93, %al
22 jne .L23
23 testb $4, %dl
24 jne .L15
25 .L23:
26 movzbl 1(%rdi), %eax
27 addq $1, %rdi
28 .L8:
29 testb %al, %al
30 je .L10
31 cmpb $91, %al
32 jne .L27
33 .L4:
34 orl $4, %edx
35 jmp .L23
36 .p2align 4,,10
37 .p2align 3
38 .L26:
39 cmpb $42, %al
40 je .L15
41 cmpb $63, %al
42 jne .L23
43 .L15:
44 movl $1, %eax
45 ret
46 .p2align 4,,10
47 .p2align 3
48 .L6:
49 testl %esi, %esi
50 movzbl 1(%rdi), %eax
51 leaq 1(%rdi), %rcx
52 je .L14
53 testb %al, %al
54 jne .L9
55 orl $2, %edx
56 .L10:
57 xorl %eax, %eax
58 cmpl $1, %edx
59 sete %al
60 ret
61 .p2align 4,,10
62 .p2align 3
63 .L14:
64 movq %rcx, %rdi
65 jmp .L8
66 .p2align 4,,10
67 .p2align 3
68 .L9:
69 movzbl 2(%rdi), %eax
70 orl $2, %edx
71 addq $2, %rdi
72 jmp .L8
73 .p2align 4,,10
74 .p2align 3
75 .L12:
76 xorl %eax, %eax
77 ret
78 .size __glob_pattern_p, .-__glob_pattern_p
79 .weak glob_pattern_p
80 .set glob_pattern_p,__glob_pattern_p