clarify the purpose of this project
[nyanglibc.git] / resolv / res_hconf.s
blob45f275b121dfca7de18bc3028f8a0df0adb56be1
1 .text
2 #APP
3 .section __libc_freeres_ptrs, "aw", %nobits
4 .previous
5 .section .rodata.str1.8,"aMS",@progbits,1
6 .align 8
7 .LC0:
8 .string "%s: line %d: cannot specify more than %d trim domains"
9 .section .rodata.str1.1,"aMS",@progbits,1
10 .LC1:
11 .string "%s"
12 .section .rodata.str1.8
13 .align 8
14 .LC2:
15 .string "%s: line %d: list delimiter not followed by domain"
16 #NO_APP
17 .text
18 .p2align 4,,15
19 .type arg_trimdomain_list, @function
20 arg_trimdomain_list:
21 .LFB86:
22 pushq %r15
23 pushq %r14
24 movl %esi, %r14d
25 pushq %r13
26 pushq %r12
27 movq %rdi, %r13
28 pushq %rbp
29 pushq %rbx
30 movq %rdx, %rdi
31 leaq _res_hconf(%rip), %rbp
32 movabsq $864708720641179648, %r12
33 subq $24, %rsp
34 movzbl (%rdx), %edx
35 .p2align 4,,10
36 .p2align 3
37 .L16:
38 testb %dl, %dl
39 je .L18
40 movq __libc_tsd_CTYPE_B@gottpoff(%rip), %rax
41 movsbq %dl, %rcx
42 movq %rdi, %rbx
43 movq %fs:(%rax), %rax
44 testb $32, 1(%rax,%rcx,2)
45 jne .L19
46 cmpb $35, %dl
47 setne %cl
48 cmpb $44, %dl
49 setne %dl
50 testb %dl, %cl
51 jne .L4
52 jmp .L19
53 .p2align 4,,10
54 .p2align 3
55 .L54:
56 cmpb $35, %cl
57 setne %sil
58 cmpb $44, %cl
59 setne %cl
60 testb %cl, %sil
61 je .L22
62 .L4:
63 addq $1, %rbx
64 movzbl (%rbx), %ecx
65 testb %cl, %cl
66 je .L22
67 movsbq %cl, %rsi
68 testb $32, 1(%rax,%rsi,2)
69 je .L54
70 .L22:
71 movq %rbx, %rsi
72 subq %rdi, %rsi
73 .L2:
74 movslq 24+_res_hconf(%rip), %r15
75 cmpl $3, %r15d
76 jg .L55
77 .L6:
78 leal 1(%r15), %eax
79 movl %eax, 24+_res_hconf(%rip)
80 call __strndup
81 movq %rax, 32(%rbp,%r15,8)
82 movq __libc_tsd_CTYPE_B@gottpoff(%rip), %rax
83 movq %fs:(%rax), %rsi
84 movsbq (%rbx), %rax
85 testb $32, 1(%rsi,%rax,2)
86 movq %rax, %rcx
87 je .L9
88 .p2align 4,,10
89 .p2align 3
90 .L10:
91 addq $1, %rbx
92 movsbq (%rbx), %rax
93 testb $32, 1(%rsi,%rax,2)
94 movq %rax, %rcx
95 jne .L10
96 .L9:
97 cmpb $59, %cl
98 movq %rbx, %rdi
99 ja .L11
100 btq %rcx, %r12
101 jc .L56
102 .L11:
103 movzbl (%rdi), %edx
104 testb %dl, %dl
105 je .L24
106 cmpb $35, %dl
107 jne .L16
108 .L24:
109 addq $24, %rsp
110 movq %rdi, %rax
111 popq %rbx
112 popq %rbp
113 popq %r12
114 popq %r13
115 popq %r14
116 popq %r15
118 .p2align 4,,10
119 .p2align 3
120 .L56:
121 movsbq 1(%rbx), %rdx
122 addq $1, %rdi
123 testb $32, 1(%rsi,%rdx,2)
124 movq %rdx, %rax
125 je .L12
126 .p2align 4,,10
127 .p2align 3
128 .L13:
129 addq $1, %rdi
130 movsbq (%rdi), %rdx
131 testb $32, 1(%rsi,%rdx,2)
132 movq %rdx, %rax
133 jne .L13
134 .L12:
135 testb %al, %al
136 je .L23
137 cmpb $35, %al
138 jne .L11
139 .L23:
140 leaq .LC2(%rip), %rsi
141 leaq _libc_intl_domainname(%rip), %rdi
142 movl $5, %edx
143 call __dcgettext
144 leaq 8(%rsp), %rdi
145 movq %rax, %rsi
146 movl %r14d, %ecx
147 xorl %eax, %eax
148 movq %r13, %rdx
149 call __asprintf
150 testl %eax, %eax
151 jns .L52
152 .L15:
153 xorl %eax, %eax
154 .L57:
155 addq $24, %rsp
156 popq %rbx
157 popq %rbp
158 popq %r12
159 popq %r13
160 popq %r14
161 popq %r15
163 .p2align 4,,10
164 .p2align 3
165 .L19:
166 movslq 24+_res_hconf(%rip), %r15
167 xorl %esi, %esi
168 cmpl $3, %r15d
169 jle .L6
170 .L55:
171 leaq .LC0(%rip), %rsi
172 leaq _libc_intl_domainname(%rip), %rdi
173 movl $5, %edx
174 call __dcgettext
175 leaq 8(%rsp), %rdi
176 movq %rax, %rsi
177 movl $4, %r8d
178 xorl %eax, %eax
179 movl %r14d, %ecx
180 movq %r13, %rdx
181 call __asprintf
182 testl %eax, %eax
183 js .L15
184 .L52:
185 movq 8(%rsp), %rdx
186 leaq .LC1(%rip), %rsi
187 xorl %edi, %edi
188 xorl %eax, %eax
189 call __fxprintf
190 movq 8(%rsp), %rdi
191 call free@PLT
192 xorl %eax, %eax
193 jmp .L57
194 .L18:
195 movq %rdi, %rbx
196 xorl %esi, %esi
197 jmp .L2
198 .LFE86:
199 .size arg_trimdomain_list, .-arg_trimdomain_list
200 .section .rodata.str1.1
201 .LC3:
202 .string "on"
203 .LC4:
204 .string "off"
205 .section .rodata.str1.8
206 .align 8
207 .LC5:
208 .string "%s: line %d: expected `on' or `off', found `%s'\n"
209 .text
210 .p2align 4,,15
211 .type arg_bool, @function
212 arg_bool:
213 .LFB87:
214 pushq %r13
215 pushq %r12
216 movl %esi, %r13d
217 pushq %rbp
218 pushq %rbx
219 leaq .LC3(%rip), %rsi
220 movq %rdx, %rbx
221 movq %rdi, %r12
222 movl $2, %edx
223 subq $24, %rsp
224 movq %rbx, %rdi
225 movl %ecx, %ebp
226 call __strncasecmp@PLT
227 testl %eax, %eax
228 je .L64
229 leaq .LC4(%rip), %rsi
230 movl $3, %edx
231 movq %rbx, %rdi
232 call __strncasecmp@PLT
233 testl %eax, %eax
234 jne .L61
235 notl %ebp
236 andl %ebp, 64+_res_hconf(%rip)
237 leaq 3(%rbx), %rax
238 .L58:
239 addq $24, %rsp
240 popq %rbx
241 popq %rbp
242 popq %r12
243 popq %r13
245 .p2align 4,,10
246 .p2align 3
247 .L64:
248 orl %ebp, 64+_res_hconf(%rip)
249 addq $24, %rsp
250 leaq 2(%rbx), %rax
251 popq %rbx
252 popq %rbp
253 popq %r12
254 popq %r13
256 .p2align 4,,10
257 .p2align 3
258 .L61:
259 leaq .LC5(%rip), %rsi
260 leaq _libc_intl_domainname(%rip), %rdi
261 movl $5, %edx
262 call __dcgettext
263 leaq 8(%rsp), %rdi
264 movq %rax, %rsi
265 movq %rbx, %r8
266 xorl %eax, %eax
267 movl %r13d, %ecx
268 movq %r12, %rdx
269 call __asprintf
270 testl %eax, %eax
271 jns .L65
272 xorl %eax, %eax
273 jmp .L58
274 .p2align 4,,10
275 .p2align 3
276 .L65:
277 movq 8(%rsp), %rdx
278 leaq .LC1(%rip), %rsi
279 xorl %edi, %edi
280 xorl %eax, %eax
281 call __fxprintf
282 movq 8(%rsp), %rdi
283 call free@PLT
284 xorl %eax, %eax
285 jmp .L58
286 .LFE87:
287 .size arg_bool, .-arg_bool
288 .section .rodata.str1.1
289 .LC6:
290 .string "/etc/host.conf"
291 .LC7:
292 .string "RESOLV_HOST_CONF"
293 .LC8:
294 .string "rce"
295 .section .rodata.str1.8
296 .align 8
297 .LC9:
298 .string "%s: line %d: ignoring trailing garbage `%s'\n"
299 .section .rodata.str1.1
300 .LC10:
301 .string "RESOLV_MULTI"
302 .LC11:
303 .string "RESOLV_REORDER"
304 .LC12:
305 .string "RESOLV_ADD_TRIM_DOMAINS"
306 .LC13:
307 .string "RESOLV_OVERRIDE_TRIM_DOMAINS"
308 .section .rodata.str1.8
309 .align 8
310 .LC14:
311 .string "%s: line %d: bad command `%s'\n"
312 .text
313 .p2align 4,,15
314 .type do_init, @function
315 do_init:
316 .LFB89:
317 pushq %r15
318 pxor %xmm0, %xmm0
319 pushq %r14
320 pushq %r13
321 leaq .LC7(%rip), %rdi
322 pushq %r12
323 pushq %rbp
324 pushq %rbx
325 subq $312, %rsp
326 movq $0, 64+_res_hconf(%rip)
327 movups %xmm0, _res_hconf(%rip)
328 movups %xmm0, 16+_res_hconf(%rip)
329 movups %xmm0, 32+_res_hconf(%rip)
330 movups %xmm0, 48+_res_hconf(%rip)
331 call getenv
332 testq %rax, %rax
333 movq %rax, %rsi
334 leaq .LC6(%rip), %rax
335 cmovne %rsi, %rax
336 leaq .LC8(%rip), %rsi
337 movq %rax, %rdi
338 movq %rax, 16(%rsp)
339 call _IO_new_fopen@PLT
340 testq %rax, %rax
341 movq %rax, 8(%rsp)
342 je .L68
343 orl $32768, (%rax)
344 leaq 40(%rsp), %rax
345 leaq 48(%rsp), %rbx
346 movl $0, 4(%rsp)
347 movq %rax, 24(%rsp)
348 .p2align 4,,10
349 .p2align 3
350 .L69:
351 movq 8(%rsp), %rdx
352 movl $256, %esi
353 movq %rbx, %rdi
354 call __fgets_unlocked
355 testq %rax, %rax
356 je .L158
357 movl $10, %esi
358 movq %rbx, %rdi
359 addl $1, 4(%rsp)
360 call __strchrnul@PLT
361 movb $0, (%rax)
362 movq __libc_tsd_CTYPE_B@gottpoff(%rip), %rax
363 movq %rbx, %rbp
364 movsbq 48(%rsp), %rdx
365 movq %fs:(%rax), %r13
366 movq %rdx, %rax
367 testb $32, 1(%r13,%rdx,2)
368 je .L70
369 .p2align 4,,10
370 .p2align 3
371 .L71:
372 addq $1, %rbp
373 movsbq 0(%rbp), %rdx
374 testb $32, 1(%r13,%rdx,2)
375 movq %rdx, %rax
376 jne .L71
377 .L70:
378 testb %al, %al
379 je .L69
380 cmpb $35, %al
381 je .L69
382 movzbl 0(%rbp), %eax
383 testb %al, %al
384 je .L102
385 movsbq %al, %rdx
386 movq %rbp, %r12
387 testb $32, 1(%r13,%rdx,2)
388 jne .L103
389 cmpb $44, %al
390 setne %dl
391 cmpb $35, %al
392 setne %al
393 testb %al, %dl
394 jne .L77
395 jmp .L103
396 .p2align 4,,10
397 .p2align 3
398 .L159:
399 cmpb $35, %al
400 setne %dl
401 cmpb $44, %al
402 setne %al
403 testb %al, %dl
404 je .L104
405 .L77:
406 addq $1, %r12
407 movzbl (%r12), %eax
408 testb %al, %al
409 je .L104
410 movsbq %al, %rdx
411 testb $32, 1(%r13,%rdx,2)
412 je .L159
413 .L104:
414 movq %r12, %r15
415 subq %rbp, %r15
416 .L75:
417 leaq cmd(%rip), %r14
418 .L84:
419 movq %r15, %rdx
420 movq %r14, %rsi
421 movq %rbp, %rdi
422 call __strncasecmp@PLT
423 testl %eax, %eax
424 jne .L79
425 movq %r14, %rdx
426 .L80:
427 movl (%rdx), %ecx
428 addq $4, %rdx
429 leal -16843009(%rcx), %eax
430 notl %ecx
431 andl %ecx, %eax
432 andl $-2139062144, %eax
433 je .L80
434 movl %eax, %ecx
435 shrl $16, %ecx
436 testl $32896, %eax
437 cmove %ecx, %eax
438 leaq 2(%rdx), %rcx
439 movl %eax, %esi
440 cmove %rcx, %rdx
441 addb %al, %sil
442 sbbq $3, %rdx
443 subq %r14, %rdx
444 cmpq %r15, %rdx
445 je .L155
446 .L79:
447 leaq 64+cmd(%rip), %rax
448 addq $16, %r14
449 cmpq %r14, %rax
450 jne .L84
451 leaq .LC14(%rip), %rsi
452 movl $5, %edx
453 .L157:
454 leaq _libc_intl_domainname(%rip), %rdi
455 call __dcgettext
456 movl 4(%rsp), %ecx
457 movq 16(%rsp), %rdx
458 movq %rax, %rsi
459 movq 24(%rsp), %rdi
460 xorl %eax, %eax
461 movq %rbp, %r8
462 call __asprintf
463 testl %eax, %eax
464 js .L69
465 movq 40(%rsp), %rdx
466 leaq .LC1(%rip), %rsi
467 xorl %edi, %edi
468 xorl %eax, %eax
469 call __fxprintf
470 movq 40(%rsp), %rdi
471 call free@PLT
472 jmp .L69
473 .p2align 4,,10
474 .p2align 3
475 .L82:
476 addq $1, %r12
477 .L155:
478 movsbq (%r12), %rax
479 testb $32, 1(%r13,%rax,2)
480 jne .L82
481 movzbl 11(%r14), %eax
482 cmpb $1, %al
483 je .L160
484 cmpb $2, %al
485 jne .L69
486 movl 12(%r14), %ecx
487 movl 4(%rsp), %esi
488 movq %r12, %rdx
489 movq 16(%rsp), %rdi
490 call arg_bool
491 movq %rax, %rbp
492 .L87:
493 testq %rbp, %rbp
494 je .L69
495 movzbl 0(%rbp), %eax
496 testb %al, %al
497 je .L69
498 movq __libc_tsd_CTYPE_B@gottpoff(%rip), %rdi
499 movsbq %al, %rdx
500 movq %fs:(%rdi), %rcx
501 testb $32, 1(%rcx,%rdx,2)
502 je .L89
503 .p2align 4,,10
504 .p2align 3
505 .L90:
506 addq $1, %rbp
507 movzbl 0(%rbp), %eax
508 testb %al, %al
509 je .L69
510 movsbq %al, %rdx
511 testb $32, 1(%rcx,%rdx,2)
512 jne .L90
513 .L89:
514 cmpb $35, %al
515 je .L69
516 movl $5, %edx
517 leaq .LC9(%rip), %rsi
518 jmp .L157
519 .p2align 4,,10
520 .p2align 3
521 .L158:
522 movq 8(%rsp), %rdi
523 call _IO_new_fclose@PLT
524 .L68:
525 leaq .LC10(%rip), %rdi
526 call getenv
527 testq %rax, %rax
528 je .L94
529 leaq .LC10(%rip), %rdi
530 movl $16, %ecx
531 movq %rax, %rdx
532 movl $1, %esi
533 call arg_bool
534 .L94:
535 leaq .LC11(%rip), %rdi
536 call getenv
537 testq %rax, %rax
538 je .L95
539 leaq .LC11(%rip), %rdi
540 movl $8, %ecx
541 movq %rax, %rdx
542 movl $1, %esi
543 call arg_bool
544 .L95:
545 leaq .LC12(%rip), %rdi
546 call getenv
547 testq %rax, %rax
548 je .L96
549 leaq .LC12(%rip), %rdi
550 movq %rax, %rdx
551 movl $1, %esi
552 call arg_trimdomain_list
553 .L96:
554 leaq .LC13(%rip), %rdi
555 call getenv
556 testq %rax, %rax
557 je .L97
558 leaq .LC13(%rip), %rdi
559 movq %rax, %rdx
560 movl $1, %esi
561 movl $0, 24+_res_hconf(%rip)
562 call arg_trimdomain_list
563 .L97:
564 movl $1, _res_hconf(%rip)
565 addq $312, %rsp
566 popq %rbx
567 popq %rbp
568 popq %r12
569 popq %r13
570 popq %r14
571 popq %r15
573 .p2align 4,,10
574 .p2align 3
575 .L160:
576 movl 4(%rsp), %esi
577 movq 16(%rsp), %rdi
578 movq %r12, %rdx
579 call arg_trimdomain_list
580 movq %rax, %rbp
581 jmp .L87
582 .L103:
583 xorl %r15d, %r15d
584 jmp .L75
585 .L102:
586 movq %rbp, %r12
587 xorl %r15d, %r15d
588 jmp .L75
589 .LFE89:
590 .size do_init, .-do_init
591 .p2align 4,,15
592 .globl _res_hconf_init
593 .hidden _res_hconf_init
594 .type _res_hconf_init, @function
595 _res_hconf_init:
596 .LFB90:
597 cmpq $0, __pthread_once@GOTPCREL(%rip)
598 jne .L168
599 movl once.14257(%rip), %eax
600 testl %eax, %eax
601 je .L169
602 rep ret
603 .p2align 4,,10
604 .p2align 3
605 .L168:
606 leaq do_init(%rip), %rsi
607 leaq once.14257(%rip), %rdi
608 jmp __pthread_once@PLT
609 .p2align 4,,10
610 .p2align 3
611 .L169:
612 subq $8, %rsp
613 call do_init
614 orl $2, once.14257(%rip)
615 addq $8, %rsp
617 .LFE90:
618 .size _res_hconf_init, .-_res_hconf_init
619 .section .rodata.str1.1
620 .LC15:
621 .string "res_hconf.c"
622 .LC16:
623 .string "ifaddrs != NULL"
624 .text
625 .p2align 4,,15
626 .globl _res_hconf_reorder_addrs
627 .type _res_hconf_reorder_addrs, @function
628 _res_hconf_reorder_addrs:
629 .LFB91:
630 testb $8, 64+_res_hconf(%rip)
631 je .L201
632 cmpl $2, 16(%rdi)
633 je .L204
634 .L201:
635 rep ret
636 .p2align 4,,10
637 .p2align 3
638 .L204:
639 pushq %r15
640 pushq %r14
641 pushq %r13
642 pushq %r12
643 pushq %rbp
644 pushq %rbx
645 movq %rdi, %rbx
646 subq $40, %rsp
647 movl num_ifs.14272(%rip), %ebp
648 testl %ebp, %ebp
649 jle .L205
650 .L174:
651 movq 24(%rbx), %r9
652 movq (%r9), %r8
653 testq %r8, %r8
654 je .L170
655 movq ifaddrs(%rip), %rax
656 movq %r8, %rdi
657 movq %r9, %r10
658 leaq 4(%rax), %r11
659 .L189:
660 movl (%rdi), %esi
661 movq %r11, %rax
662 xorl %edx, %edx
663 .p2align 4,,10
664 .p2align 3
665 .L188:
666 movl (%rax), %ecx
667 xorl %esi, %ecx
668 testl %ecx, 4(%rax)
669 je .L206
670 addl $1, %edx
671 addq $12, %rax
672 cmpl %edx, %ebp
673 jg .L188
674 addq $8, %r10
675 movq (%r10), %rdi
676 testq %rdi, %rdi
677 jne .L189
678 .L170:
679 addq $40, %rsp
680 popq %rbx
681 popq %rbp
682 popq %r12
683 popq %r13
684 popq %r14
685 popq %r15
687 .p2align 4,,10
688 .p2align 3
689 .L206:
690 movq %r8, (%r10)
691 movq %rdi, (%r9)
692 jmp .L170
693 .p2align 4,,10
694 .p2align 3
695 .L205:
696 movq __libc_errno@gottpoff(%rip), %rax
697 xorl %edx, %edx
698 movl $524290, %esi
699 movl $2, %edi
700 movl %fs:(%rax), %r13d
701 call __socket
702 testl %eax, %eax
703 movl %eax, %r14d
704 js .L170
705 #APP
706 # 396 "res_hconf.c" 1
707 movl %fs:24,%eax
708 # 0 "" 2
709 #NO_APP
710 testl %eax, %eax
711 jne .L176
712 movl $1, %edx
713 #APP
714 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
715 cmpxchgl %edx, lock.14274(%rip)
716 # 0 "" 2
717 #NO_APP
718 .L177:
719 movl num_ifs.14272(%rip), %ebp
720 testl %ebp, %ebp
721 jle .L207
722 .L178:
723 #APP
724 # 469 "res_hconf.c" 1
725 movl %fs:24,%eax
726 # 0 "" 2
727 #NO_APP
728 testl %eax, %eax
729 jne .L185
730 subl $1, lock.14274(%rip)
731 .L186:
732 movl %r14d, %edi
733 call __close
734 testl %ebp, %ebp
735 je .L170
736 jmp .L174
737 .p2align 4,,10
738 .p2align 3
739 .L207:
740 leaq 20(%rsp), %rsi
741 leaq 24(%rsp), %rdi
742 movl %r14d, %edx
743 call __ifreq
744 movq 24(%rsp), %r15
745 testq %r15, %r15
746 je .L191
747 movslq 20(%rsp), %rax
748 leaq (%rax,%rax,2), %rdi
749 salq $2, %rdi
750 call malloc@PLT
751 testq %rax, %rax
752 movq %rax, ifaddrs(%rip)
753 je .L192
754 movl 20(%rsp), %edx
755 testl %edx, %edx
756 jle .L193
757 xorl %ebp, %ebp
758 xorl %r8d, %r8d
759 jmp .L184
760 .p2align 4,,10
761 .p2align 3
762 .L182:
763 addq $40, %r15
764 addl $1, %r8d
765 cmpl %r8d, 20(%rsp)
766 jle .L181
767 .L184:
768 movslq %ebp, %rdx
769 leaq (%rdx,%rdx,2), %rcx
770 salq $2, %rcx
771 cmpw $2, 16(%r15)
772 movq %rcx, %r12
773 jne .L182
774 movl 20(%r15), %edx
775 addq %rcx, %rax
776 movl $35099, %esi
777 movl $2, (%rax)
778 movl %r14d, %edi
779 movq %rcx, 8(%rsp)
780 movl %r8d, 4(%rsp)
781 movl %edx, 4(%rax)
782 xorl %eax, %eax
783 movq %r15, %rdx
784 call __ioctl
785 testl %eax, %eax
786 movl 4(%rsp), %r8d
787 movq 8(%rsp), %rcx
788 movq ifaddrs(%rip), %rax
789 js .L182
790 movl 20(%r15), %edx
791 addl $1, %ebp
792 addq $12, %r12
793 movl %edx, 8(%rax,%rcx)
794 jmp .L182
795 .L193:
796 xorl %r12d, %r12d
797 xorl %ebp, %ebp
798 .L181:
799 movq %r12, %rsi
800 movq %rax, %rdi
801 call realloc@PLT
802 testq %rax, %rax
803 movq %rax, ifaddrs(%rip)
804 je .L208
805 .L180:
806 movq 24(%rsp), %rdi
807 call free@PLT
808 movl %ebp, %eax
809 .L179:
810 movq __libc_errno@gottpoff(%rip), %rsi
811 movl %r13d, %fs:(%rsi)
812 movl %eax, num_ifs.14272(%rip)
813 jmp .L178
814 .L176:
815 xorl %eax, %eax
816 movl $1, %edx
817 lock cmpxchgl %edx, lock.14274(%rip)
818 je .L177
819 leaq lock.14274(%rip), %rdi
820 call __lll_lock_wait_private
821 jmp .L177
822 .L185:
823 xorl %eax, %eax
824 #APP
825 # 469 "res_hconf.c" 1
826 xchgl %eax, lock.14274(%rip)
827 # 0 "" 2
828 #NO_APP
829 cmpl $1, %eax
830 jle .L186
831 xorl %r10d, %r10d
832 movl $1, %edx
833 movl $129, %esi
834 leaq lock.14274(%rip), %rdi
835 movl $202, %eax
836 #APP
837 # 469 "res_hconf.c" 1
838 syscall
840 # 0 "" 2
841 #NO_APP
842 jmp .L186
843 .L191:
844 xorl %eax, %eax
845 xorl %ebp, %ebp
846 jmp .L179
847 .L192:
848 xorl %ebp, %ebp
849 jmp .L180
850 .L208:
851 leaq __PRETTY_FUNCTION__.14298(%rip), %rcx
852 leaq .LC15(%rip), %rsi
853 leaq .LC16(%rip), %rdi
854 movl $450, %edx
855 call __assert_fail
856 .LFE91:
857 .size _res_hconf_reorder_addrs, .-_res_hconf_reorder_addrs
858 .p2align 4,,15
859 .globl _res_hconf_trim_domain
860 .type _res_hconf_trim_domain, @function
861 _res_hconf_trim_domain:
862 .LFB92:
863 pushq %r15
864 pushq %r14
865 pushq %r13
866 pushq %r12
867 pushq %rbp
868 pushq %rbx
869 subq $24, %rsp
870 movq %rdi, 8(%rsp)
871 call strlen
872 movl 24+_res_hconf(%rip), %r13d
873 testl %r13d, %r13d
874 jle .L209
875 leaq 32+_res_hconf(%rip), %r14
876 movq %rax, %r12
877 xorl %ebx, %ebx
878 .p2align 4,,10
879 .p2align 3
880 .L212:
881 movq (%r14,%rbx,8), %r15
882 movq %r15, %rdi
883 call strlen
884 cmpq %rax, %r12
885 jbe .L211
886 movq %r12, %rbp
887 movq %r15, %rsi
888 subq %rax, %rbp
889 addq 8(%rsp), %rbp
890 movq %rbp, %rdi
891 call __strcasecmp
892 testl %eax, %eax
893 je .L215
894 .L211:
895 addq $1, %rbx
896 cmpl %ebx, %r13d
897 jg .L212
898 .L209:
899 addq $24, %rsp
900 popq %rbx
901 popq %rbp
902 popq %r12
903 popq %r13
904 popq %r14
905 popq %r15
907 .p2align 4,,10
908 .p2align 3
909 .L215:
910 movb $0, 0(%rbp)
911 addq $24, %rsp
912 popq %rbx
913 popq %rbp
914 popq %r12
915 popq %r13
916 popq %r14
917 popq %r15
919 .LFE92:
920 .size _res_hconf_trim_domain, .-_res_hconf_trim_domain
921 .p2align 4,,15
922 .globl _res_hconf_trim_domains
923 .type _res_hconf_trim_domains, @function
924 _res_hconf_trim_domains:
925 .LFB93:
926 movl 24+_res_hconf(%rip), %eax
927 testl %eax, %eax
928 jne .L227
929 rep ret
930 .p2align 4,,10
931 .p2align 3
932 .L227:
933 pushq %rbp
934 pushq %rbx
935 movq %rdi, %rbp
936 subq $8, %rsp
937 movq (%rdi), %rdi
938 call _res_hconf_trim_domain
939 movq 8(%rbp), %rax
940 movq (%rax), %rdi
941 testq %rdi, %rdi
942 je .L216
943 movl $8, %ebx
944 .p2align 4,,10
945 .p2align 3
946 .L218:
947 call _res_hconf_trim_domain
948 movq 8(%rbp), %rax
949 movq (%rax,%rbx), %rdi
950 addq $8, %rbx
951 testq %rdi, %rdi
952 jne .L218
953 .L216:
954 addq $8, %rsp
955 popq %rbx
956 popq %rbp
958 .LFE93:
959 .size _res_hconf_trim_domains, .-_res_hconf_trim_domains
960 .section .rodata.str1.16,"aMS",@progbits,1
961 .align 16
962 .type __PRETTY_FUNCTION__.14298, @object
963 .size __PRETTY_FUNCTION__.14298, 25
964 __PRETTY_FUNCTION__.14298:
965 .string "_res_hconf_reorder_addrs"
966 .local lock.14274
967 .comm lock.14274,4,4
968 .data
969 .align 4
970 .type num_ifs.14272, @object
971 .size num_ifs.14272, 4
972 num_ifs.14272:
973 .long -1
974 .local once.14257
975 .comm once.14257,4,4
976 .section __libc_freeres_ptrs
977 #,"aw",@progbits
978 .align 8
979 .type ifaddrs, @object
980 .size ifaddrs, 8
981 ifaddrs:
982 .zero 8
983 .comm _res_hconf,72,32
984 .section .rodata
985 .align 32
986 .type cmd, @object
987 .size cmd, 64
988 cmd:
989 .string "order"
990 .zero 5
991 .byte 0
992 .long 0
993 .string "trim"
994 .zero 6
995 .byte 1
996 .long 0
997 .string "multi"
998 .zero 5
999 .byte 2
1000 .long 16
1001 .string "reorder"
1002 .zero 3
1003 .byte 2
1004 .long 8
1005 .weak __pthread_once
1006 .hidden __strcasecmp
1007 .hidden strlen
1008 .hidden __assert_fail
1009 .hidden __lll_lock_wait_private
1010 .hidden __ioctl
1011 .hidden __ifreq
1012 .hidden __close
1013 .hidden __socket
1014 .hidden __fgets_unlocked
1015 .hidden getenv
1016 .hidden __fxprintf
1017 .hidden __asprintf
1018 .hidden __dcgettext
1019 .hidden _libc_intl_domainname
1020 .hidden __strndup