clarify the purpose of this project
[nyanglibc.git] / login / getutid.shared.s
blob696978bf1dc5584ae61eb36e4d53c2bd7b2238b3
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .section __libc_freeres_ptrs, "aw", %nobits
7 .previous
8 #NO_APP
9 .p2align 4,,15
10 .globl __GI___getutid
11 .hidden __GI___getutid
12 .type __GI___getutid, @function
13 __GI___getutid:
14 pushq %rbx
15 movq %rdi, %rbx
16 subq $16, %rsp
17 movq buffer(%rip), %rsi
18 testq %rsi, %rsi
19 je .L7
20 .L2:
21 leaq 8(%rsp), %rdx
22 movq %rbx, %rdi
23 call __GI___getutid_r
24 testl %eax, %eax
25 js .L4
26 movq 8(%rsp), %rax
27 .L1:
28 addq $16, %rsp
29 popq %rbx
30 ret
31 .p2align 4,,10
32 .p2align 3
33 .L7:
34 movl $384, %edi
35 call malloc@PLT
36 testq %rax, %rax
37 movq %rax, %rsi
38 movq %rax, buffer(%rip)
39 jne .L2
40 .p2align 4,,10
41 .p2align 3
42 .L4:
43 xorl %eax, %eax
44 jmp .L1
45 .size __GI___getutid, .-__GI___getutid
46 .globl __getutid
47 .set __getutid,__GI___getutid
48 .weak getutid
49 .set getutid,__getutid
50 .section __libc_freeres_ptrs
51 #,"aw",@progbits
52 .align 8
53 .type buffer, @object
54 .size buffer, 8
55 buffer:
56 .zero 8