clarify the purpose of this project
[nyanglibc.git] / gmon / _mcount.s
blobe68c3832bcc252e4cab686631afbc3cdf183dfe3
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 .size _mcount,.-_mcount
26 .weak mcount
27 mcount = _mcount
28 .globl __fentry__
29 .type __fentry__,@function
30 .align 1<<4
31 __fentry__:
32 subq $64,%rsp
33 movq %rax,(%rsp)
34 movq %rcx,8(%rsp)
35 movq %rdx,16(%rsp)
36 movq %rsi,24(%rsp)
37 movq %rdi,32(%rsp)
38 movq %r8,40(%rsp)
39 movq %r9,48(%rsp)
40 movq 64(%rsp),%rsi
41 movq 72(%rsp),%rdi
42 call __mcount_internal
43 movq 48(%rsp),%r9
44 movq 40(%rsp),%r8
45 movq 32(%rsp),%rdi
46 movq 24(%rsp),%rsi
47 movq 16(%rsp),%rdx
48 movq 8(%rsp),%rcx
49 movq (%rsp),%rax
50 addq $64,%rsp
51 ret
52 .size __fentry__,.-__fentry__