clarify the purpose of this project
[nyanglibc.git] / gmon / _mcount.shared.s
blob2b31102b8c2c9aa182a8430f5ee630c096df0be0
1 .globl _mcount
2 .type _mcount,@function
3 .align 1<<4
4 _mcount:
5 subq $56,%rsp
6 movq %rax,(%rsp)
7 movq %rcx,8(%rsp)
8 movq %rdx,16(%rsp)
9 movq %rsi,24(%rsp)
10 movq %rdi,32(%rsp)
11 movq %r8,40(%rsp)
12 movq %r9,48(%rsp)
13 movq 56(%rsp),%rsi
14 movq 8(%rbp),%rdi
15 call __mcount_internal
16 movq 48(%rsp),%r9
17 movq 40(%rsp),%r8
18 movq 32(%rsp),%rdi
19 movq 24(%rsp),%rsi
20 movq 16(%rsp),%rdx
21 movq 8(%rsp),%rcx
22 movq (%rsp),%rax
23 addq $56,%rsp
24 ret
25 .weak mcount
26 mcount = _mcount
27 .globl __fentry__
28 .type __fentry__,@function
29 .align 1<<4
30 __fentry__:
31 subq $64,%rsp
32 movq %rax,(%rsp)
33 movq %rcx,8(%rsp)
34 movq %rdx,16(%rsp)
35 movq %rsi,24(%rsp)
36 movq %rdi,32(%rsp)
37 movq %r8,40(%rsp)
38 movq %r9,48(%rsp)
39 movq 64(%rsp),%rsi
40 movq 72(%rsp),%rdi
41 call __mcount_internal
42 movq 48(%rsp),%r9
43 movq 40(%rsp),%r8
44 movq 32(%rsp),%rdi
45 movq 24(%rsp),%rsi
46 movq 16(%rsp),%rdx
47 movq 8(%rsp),%rcx
48 movq (%rsp),%rax
49 addq $64,%rsp
50 ret
51 .size __fentry__,.-__fentry__