clarify the purpose of this project
[nyanglibc.git] / time / clock_gettime.shared.s
blob4e06f2d5f93f7db1ba9d27ce5149fe2f9594f3a6
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __clock_gettime,clock_gettime@@GLIBC_2.17
7 .symver __clock_gettime_2,clock_gettime@GLIBC_2.2.5
8 #NO_APP
9 .p2align 4,,15
10 .globl __GI___clock_gettime
11 .hidden __GI___clock_gettime
12 .type __GI___clock_gettime, @function
13 __GI___clock_gettime:
14 pushq %rbp
15 pushq %rbx
16 movq %rsi, %rbp
17 movl %edi, %ebx
18 subq $8, %rsp
19 movq _rtld_global_ro@GOTPCREL(%rip), %rax
20 movq 688(%rax), %rax
21 testq %rax, %rax
22 je .L6
23 call *%rax
24 movslq %eax, %rdx
25 cmpq $-4096, %rdx
26 jbe .L1
27 cmpq $-38, %rdx
28 je .L6
29 .L3:
30 movq __libc_errno@gottpoff(%rip), %rax
31 negl %edx
32 movl %edx, %fs:(%rax)
33 movl $-1, %eax
34 .L5:
35 .L1:
36 addq $8, %rsp
37 popq %rbx
38 popq %rbp
39 ret
40 .p2align 4,,10
41 .p2align 3
42 .L6:
43 movq %rbp, %rsi
44 movl %ebx, %edi
45 movl $228, %eax
46 #APP
47 # 41 "../sysdeps/unix/sysv/linux/clock_gettime.c" 1
48 syscall
50 # 0 "" 2
51 #NO_APP
52 cmpq $-4096, %rax
53 movq %rax, %rdx
54 ja .L3
55 jmp .L1
56 .size __GI___clock_gettime, .-__GI___clock_gettime
57 .globl __clock_gettime
58 .set __clock_gettime,__GI___clock_gettime
59 .globl __clock_gettime_2
60 .set __clock_gettime_2,__clock_gettime