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