clarify the purpose of this project
[nyanglibc.git] / posix / confstr.s
blobb7a9b27f5602b48c797fc073f8bf92886f5d5b45
1 .text
2 .section .rodata.str1.1,"aMS",@progbits,1
3 .LC0:
4 .string ""
5 .LC1:
6 .string "-m32"
7 .LC2:
8 .string "POSIXLY_CORRECT=1"
9 .section .rodata.str1.8,"aMS",@progbits,1
10 .align 8
11 .LC3:
12 .string "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13 .section .rodata.str1.1
14 .LC4:
15 .string "-m64"
16 .LC5:
17 .string "NPTL 2.33"
18 .LC6:
19 .string "glibc 2.33"
20 .LC7:
21 .string "-D_LARGEFILE64_SOURCE"
22 .text
23 .p2align 4,,15
24 .globl __confstr
25 .hidden __confstr
26 .type __confstr, @function
27 __confstr:
28 pushq %r12
29 pushq %rbp
30 movq %rdx, %r12
31 pushq %rbx
32 movq %rsi, %rbx
33 subq $96, %rsp
34 cmpl $1117, %edi
35 jg .L3
36 cmpl $1116, %edi
37 jge .L4
38 cmpl $1007, %edi
39 je .L5
40 jg .L6
41 cmpl $5, %edi
42 je .L7
43 jg .L8
44 cmpl $2, %edi
45 je .L9
46 jle .L100
47 cmpl $3, %edi
48 je .L13
49 cmpl $4, %edi
50 jne .L2
51 movl $125, %edi
52 call __sysconf
53 testq %rax, %rax
54 jg .L101
55 movl $126, %edi
56 call __sysconf
57 testq %rax, %rax
58 jle .L59
59 movq %rsp, %rbp
60 movl $34, %eax
61 movl $33, %ecx
62 movl $18, %edx
63 movl $17, %edi
64 movq %rbp, %rsi
65 .L54:
66 movdqa .LC13(%rip), %xmm0
67 addq %rbp, %rdx
68 movb $71, 16(%rsi)
69 movups %xmm0, (%rsi)
70 .L35:
71 movb $10, (%rsp,%rdi)
72 .L36:
73 movabsq $3913712047985214040, %rsi
74 movq %rsi, (%rdx)
75 movl $13894, %esi
76 movl $1179606836, 8(%rdx)
77 movw %si, 12(%rdx)
78 movb $52, 14(%rdx)
79 movb $0, (%rsp,%rcx)
80 movq %rbp, %rcx
81 jmp .L11
82 .p2align 4,,10
83 .p2align 3
84 .L3:
85 cmpl $1133, %edi
86 jle .L102
87 cmpl $1139, %edi
88 jle .L103
89 cmpl $1147, %edi
90 jle .L104
91 cmpl $1149, %edi
92 movl $18, %eax
93 leaq .LC2(%rip), %rcx
94 jg .L2
95 .p2align 4,,10
96 .p2align 3
97 .L11:
98 testq %r12, %r12
99 je .L1
100 testq %rbx, %rbx
101 je .L1
102 cmpq %r12, %rax
103 jbe .L105
104 leaq -1(%r12), %rsi
105 cmpq $8, %rsi
106 jnb .L47
107 testb $4, %sil
108 jne .L106
109 testq %rsi, %rsi
110 je .L48
111 movzbl (%rcx), %edx
112 testb $2, %sil
113 movb %dl, (%rbx)
114 jne .L107
115 .L48:
116 movb $0, -1(%rbx,%r12)
117 .L1:
118 addq $96, %rsp
119 popq %rbx
120 popq %rbp
121 popq %r12
123 .p2align 4,,10
124 .p2align 3
125 .L6:
126 cmpl $1105, %edi
127 je .L16
128 jg .L17
129 cmpl $1103, %edi
130 jg .L18
131 cmpl $1102, %edi
132 jge .L15
133 cmpl $1100, %edi
134 jl .L2
135 .L4:
136 movl $237, %edi
137 call __sysconf
138 testq %rax, %rax
139 js .L15
140 .L37:
141 movl $5, %eax
142 leaq .LC1(%rip), %rcx
143 jmp .L11
144 .p2align 4,,10
145 .p2align 3
146 .L102:
147 cmpl $1132, %edi
148 jge .L4
149 cmpl $1123, %edi
150 jg .L21
151 cmpl $1122, %edi
152 jge .L15
153 cmpl $1120, %edi
154 je .L18
155 .L97:
156 jle .L15
157 .L16:
158 movl $238, %edi
159 call __sysconf
160 testq %rax, %rax
161 jns .L37
162 .p2align 4,,10
163 .p2align 3
164 .L15:
165 movl $1, %eax
166 leaq .LC0(%rip), %rcx
167 jmp .L11
168 .p2align 4,,10
169 .p2align 3
170 .L100:
171 testl %edi, %edi
172 je .L55
173 cmpl $1, %edi
174 jne .L2
175 movl $176, %edi
176 call __sysconf
177 testq %rax, %rax
178 jg .L108
179 movl $177, %edi
180 call __sysconf
181 testq %rax, %rax
182 jle .L58
183 movq %rsp, %rbp
184 movl $42, %eax
185 movl $41, %esi
186 movl $22, %edx
187 movl $21, %edi
188 movq %rbp, %rcx
189 .L53:
190 movdqa .LC10(%rip), %xmm0
191 addq %rbp, %rdx
192 movl $1229080134, 16(%rcx)
193 movb $71, 20(%rcx)
194 movups %xmm0, (%rcx)
195 .L31:
196 movb $10, (%rsp,%rdi)
197 .L32:
198 movdqa .LC11(%rip), %xmm0
199 .L98:
200 movl $13894, %edi
201 movb $52, 18(%rdx)
202 movq %rbp, %rcx
203 movups %xmm0, (%rdx)
204 movw %di, 16(%rdx)
205 movb $0, (%rsp,%rsi)
206 jmp .L11
207 .p2align 4,,10
208 .p2align 3
209 .L103:
210 cmpl $1138, %edi
211 jge .L15
212 cmpl $1136, %edi
213 jne .L97
214 .L18:
215 movl $238, %edi
216 call __sysconf
217 testq %rax, %rax
218 js .L15
219 movl $48, %eax
220 leaq .LC3(%rip), %rcx
221 jmp .L11
222 .p2align 4,,10
223 .p2align 3
224 .L8:
225 cmpl $1004, %edi
226 je .L5
227 jg .L15
228 cmpl $1000, %edi
229 jge .L15
230 .L2:
231 movq __libc_errno@gottpoff(%rip), %rax
232 movl $22, %fs:(%rax)
233 xorl %eax, %eax
234 jmp .L1
235 .p2align 4,,10
236 .p2align 3
237 .L105:
238 cmpl $8, %eax
239 movl %eax, %esi
240 jnb .L41
241 testb $4, %al
242 jne .L109
243 testl %esi, %esi
244 je .L1
245 movzbl (%rcx), %edx
246 testb $2, %sil
247 movb %dl, (%rbx)
248 je .L1
249 movzwl -2(%rcx,%rsi), %edx
250 movw %dx, -2(%rbx,%rsi)
251 jmp .L1
252 .p2align 4,,10
253 .p2align 3
254 .L47:
255 movq (%rcx), %rdx
256 leaq 8(%rbx), %rdi
257 andq $-8, %rdi
258 movq %rdx, (%rbx)
259 movq -8(%rcx,%rsi), %rdx
260 movq %rdx, -8(%rbx,%rsi)
261 movq %rbx, %rdx
262 subq %rdi, %rdx
263 addq %rdx, %rsi
264 subq %rdx, %rcx
265 andq $-8, %rsi
266 cmpq $8, %rsi
267 jb .L48
268 andq $-8, %rsi
269 xorl %edx, %edx
270 .L51:
271 movq (%rcx,%rdx), %r8
272 movq %r8, (%rdi,%rdx)
273 addq $8, %rdx
274 cmpq %rsi, %rdx
275 jb .L51
276 jmp .L48
277 .p2align 4,,10
278 .p2align 3
279 .L41:
280 movq (%rcx), %rdx
281 movq %rdx, (%rbx)
282 movl %eax, %edx
283 movq -8(%rcx,%rdx), %rsi
284 movq %rsi, -8(%rbx,%rdx)
285 leaq 8(%rbx), %rdx
286 andq $-8, %rdx
287 subq %rdx, %rbx
288 leal (%rax,%rbx), %esi
289 subq %rbx, %rcx
290 andl $-8, %esi
291 cmpl $8, %esi
292 jb .L1
293 andl $-8, %esi
294 xorl %edi, %edi
295 .L45:
296 movl %edi, %r8d
297 addl $8, %edi
298 movq (%rcx,%r8), %r9
299 cmpl %esi, %edi
300 movq %r9, (%rdx,%r8)
301 jb .L45
302 jmp .L1
303 .p2align 4,,10
304 .p2align 3
305 .L21:
306 cmpl $1125, %edi
307 jg .L15
308 .L19:
309 movl $5, %eax
310 leaq .LC4(%rip), %rcx
311 jmp .L11
312 .p2align 4,,10
313 .p2align 3
314 .L13:
315 movl $10, %eax
316 leaq .LC5(%rip), %rcx
317 jmp .L11
318 .p2align 4,,10
319 .p2align 3
320 .L9:
321 movl $11, %eax
322 leaq .LC6(%rip), %rcx
323 jmp .L11
324 .p2align 4,,10
325 .p2align 3
326 .L55:
327 movl $14, %eax
328 leaq cs_path.3520(%rip), %rcx
329 jmp .L11
330 .p2align 4,,10
331 .p2align 3
332 .L7:
333 movl $237, %edi
334 call __sysconf
335 testq %rax, %rax
336 jg .L25
337 movl $238, %edi
338 call __sysconf
339 testq %rax, %rax
340 jle .L110
341 movq %rsp, %rbp
342 movl $42, %eax
343 movl $41, %esi
344 movl $22, %edx
345 movl $21, %edi
346 movq %rbp, %rcx
347 .L26:
348 movdqa .LC8(%rip), %xmm0
349 addq %rbp, %rdx
350 movl $1229080134, 16(%rcx)
351 movb $71, 20(%rcx)
352 movups %xmm0, (%rcx)
353 .L28:
354 movb $10, (%rsp,%rdi)
355 .L27:
356 movdqa .LC9(%rip), %xmm0
357 jmp .L98
358 .p2align 4,,10
359 .p2align 3
360 .L5:
361 movl $22, %eax
362 leaq .LC7(%rip), %rcx
363 jmp .L11
364 .p2align 4,,10
365 .p2align 3
366 .L17:
367 cmpl $1109, %edi
368 jg .L15
369 cmpl $1108, %edi
370 jge .L19
371 jmp .L15
372 .p2align 4,,10
373 .p2align 3
374 .L104:
375 cmpl $1142, %edi
376 jl .L19
377 jmp .L15
378 .p2align 4,,10
379 .p2align 3
380 .L101:
381 movdqa .LC12(%rip), %xmm0
382 movl $126, %edi
383 movq %rsp, %rbp
384 movaps %xmm0, (%rsp)
385 call __sysconf
386 testq %rax, %rax
387 jle .L111
388 movb $10, 16(%rsp)
389 movl $51, %eax
390 movl $50, %ecx
391 movl $35, %edx
392 movl $34, %edi
393 leaq 17(%rbp), %rsi
394 jmp .L54
395 .p2align 4,,10
396 .p2align 3
397 .L108:
398 movdqa .LC10(%rip), %xmm0
399 movl $177, %edi
400 movl $842221126, 16(%rsp)
401 movq %rsp, %rbp
402 movaps %xmm0, (%rsp)
403 call __sysconf
404 testq %rax, %rax
405 jle .L112
406 movb $10, 20(%rsp)
407 movl $63, %eax
408 movl $62, %esi
409 movl $43, %edx
410 movl $42, %edi
411 leaq 21(%rbp), %rcx
412 jmp .L53
413 .p2align 4,,10
414 .p2align 3
415 .L25:
416 movdqa .LC8(%rip), %xmm0
417 movl $238, %edi
418 movl $842221126, 16(%rsp)
419 movq %rsp, %rbp
420 movaps %xmm0, (%rsp)
421 call __sysconf
422 testq %rax, %rax
423 jle .L57
424 movb $10, 20(%rsp)
425 movl $63, %eax
426 movl $62, %esi
427 movl $43, %edx
428 movl $42, %edi
429 leaq 21(%rbp), %rcx
430 jmp .L26
431 .p2align 4,,10
432 .p2align 3
433 .L106:
434 movl (%rcx), %edx
435 movl %edx, (%rbx)
436 movl -4(%rcx,%rsi), %edx
437 movl %edx, -4(%rbx,%rsi)
438 jmp .L48
439 .p2align 4,,10
440 .p2align 3
441 .L59:
442 movq %rsp, %rbp
443 movl $16, %eax
444 movl $15, %ecx
445 movq %rbp, %rdx
446 jmp .L36
447 .p2align 4,,10
448 .p2align 3
449 .L110:
450 movq %rsp, %rbp
451 movl $20, %eax
452 movl $19, %esi
453 movq %rbp, %rdx
454 jmp .L27
455 .p2align 4,,10
456 .p2align 3
457 .L58:
458 movq %rsp, %rbp
459 movl $20, %eax
460 movl $19, %esi
461 movq %rbp, %rdx
462 jmp .L32
463 .p2align 4,,10
464 .p2align 3
465 .L109:
466 movl (%rcx), %edx
467 movl %edx, (%rbx)
468 movl -4(%rcx,%rsi), %edx
469 movl %edx, -4(%rbx,%rsi)
470 jmp .L1
471 .p2align 4,,10
472 .p2align 3
473 .L112:
474 leaq 21(%rbp), %rdx
475 movl $41, %eax
476 movl $40, %esi
477 movl $20, %edi
478 jmp .L31
479 .p2align 4,,10
480 .p2align 3
481 .L57:
482 leaq 21(%rbp), %rdx
483 movl $41, %eax
484 movl $40, %esi
485 movl $20, %edi
486 jmp .L28
487 .p2align 4,,10
488 .p2align 3
489 .L111:
490 leaq 17(%rbp), %rdx
491 movl $33, %eax
492 movl $32, %ecx
493 movl $16, %edi
494 jmp .L35
495 .L107:
496 movzwl -2(%rcx,%rsi), %edx
497 movw %dx, -2(%rbx,%rsi)
498 jmp .L48
499 .size __confstr, .-__confstr
500 .weak confstr
501 .hidden confstr
502 .set confstr,__confstr
503 .section .rodata.str1.8
504 .align 8
505 .type cs_path.3520, @object
506 .size cs_path.3520, 14
507 cs_path.3520:
508 .string "/bin:/usr/bin"
509 .section .rodata.cst16,"aM",@progbits,16
510 .align 16
511 .LC8:
512 .quad 3987479352875110224
513 .quad 5719345247755716959
514 .align 16
515 .LC9:
516 .quad 3987479352875110224
517 .quad 5066372783669267551
518 .align 16
519 .LC10:
520 .quad 3915421758837182288
521 .quad 5719345247755716959
522 .align 16
523 .LC11:
524 .quad 3915421758837182288
525 .quad 5066372783669267551
526 .align 16
527 .LC12:
528 .quad 5786080294529614424
529 .quad 3617312193501934131
530 .align 16
531 .LC13:
532 .quad 5786080294529614424
533 .quad 5278858981024936499
534 .hidden __sysconf