clarify the purpose of this project
[nyanglibc.git] / debug / backtracesymsfd.shared.s
blob1d6ffc6c2c538378453ffcc34c63682488a9a4aa
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .section .rodata.str1.1,"aMS",@progbits,1
7 .LC0:
8 .string "+0x"
9 .LC1:
10 .string "-0x"
11 .LC2:
12 .string ")"
13 .LC3:
14 .string "[0x"
15 .LC4:
16 .string "]\n"
17 .LC5:
18 .string "("
19 #NO_APP
20 .text
21 .p2align 4,,15
22 .globl __GI___backtrace_symbols_fd
23 .hidden __GI___backtrace_symbols_fd
24 .type __GI___backtrace_symbols_fd, @function
25 __GI___backtrace_symbols_fd:
26 testl %esi, %esi
27 jle .L15
28 pushq %r15
29 pushq %r14
30 leaq .LC4(%rip), %r15
31 pushq %r13
32 pushq %r12
33 pushq %rbp
34 pushq %rbx
35 movq %rdi, %rbx
36 subq $312, %rsp
37 leaq 96(%rsp), %r14
38 movl %edx, 44(%rsp)
39 leaq 16(%r14), %rax
40 movq %rax, (%rsp)
41 leal -1(%rsi), %eax
42 leaq 8(%rdi,%rax,8), %rax
43 movq %rax, 8(%rsp)
44 leaq 88(%rsp), %rax
45 movq %rax, 24(%rsp)
46 leaq 128(%rsp), %rax
47 movq %rax, 16(%rsp)
48 leaq 160(%rsp), %rax
49 movq %rax, 32(%rsp)
50 leaq 128(%rsp), %rax
51 movq %rax, 48(%rsp)
52 .p2align 4,,10
53 .p2align 3
54 .L8:
55 movq 24(%rsp), %rdx
56 movq 16(%rsp), %rsi
57 xorl %ecx, %ecx
58 movq (%rbx), %rdi
59 call __GI__dl_addr
60 testl %eax, %eax
61 je .L12
62 movq 128(%rsp), %rdi
63 testq %rdi, %rdi
64 je .L12
65 cmpb $0, (%rdi)
66 je .L12
67 movq %rdi, 160(%rsp)
68 call __GI_strlen
69 movq 144(%rsp), %rdi
70 movq %rax, 168(%rsp)
71 testq %rdi, %rdi
72 je .L19
73 leaq .LC5(%rip), %rax
74 movq %rdi, 192(%rsp)
75 movq $1, 184(%rsp)
76 movl $8, %r12d
77 movl $7, %ebp
78 movl $9, %r13d
79 movq %rax, 176(%rsp)
80 call __GI_strlen
81 movq 152(%rsp), %rdi
82 movq %rax, 200(%rsp)
83 movl $6, %r8d
84 movq $5, 64(%rsp)
85 movq $4, 56(%rsp)
86 movl $3, %eax
87 .L9:
88 movq (%rbx), %rdx
89 movq %rax, %rcx
90 salq $4, %rcx
91 cmpq %rdi, %rdx
92 jnb .L20
93 leaq .LC1(%rip), %rsi
94 subq %rdx, %rdi
95 movq %rsi, 160(%rsp,%rcx)
96 .L7:
97 movq 48(%rsp), %rsi
98 salq $4, %rax
99 xorl %ecx, %ecx
100 movl $16, %edx
101 movq %r8, 72(%rsp)
102 movq $3, 168(%rsp,%rax)
103 call _itoa_word
104 movq 56(%rsp), %rdx
105 movq 48(%rsp), %rcx
106 movq 72(%rsp), %r8
107 salq $4, %rdx
108 subq %rax, %rcx
109 movq %rax, 160(%rsp,%rdx)
110 movq 64(%rsp), %rax
111 movq %rcx, 168(%rsp,%rdx)
112 leaq .LC2(%rip), %rcx
113 salq $4, %rax
114 movq %rcx, 160(%rsp,%rax)
115 movq $1, 168(%rsp,%rax)
116 jmp .L3
117 .p2align 4,,10
118 .p2align 3
119 .L12:
120 movl $2, %r12d
121 movl $1, %ebp
122 movl $3, %r13d
123 xorl %r8d, %r8d
124 .L3:
125 movq (%rbx), %rdi
126 movq %r8, %rax
127 leaq .LC3(%rip), %rdx
128 salq $4, %rax
129 leaq 16(%r14), %rsi
130 xorl %ecx, %ecx
131 movq %rdx, 160(%rsp,%rax)
132 movl $16, %edx
133 movq $3, 168(%rsp,%rax)
134 call _itoa_word
135 movq (%rsp), %rcx
136 movq 32(%rsp), %rsi
137 salq $4, %rbp
138 movl 44(%rsp), %edi
139 salq $4, %r12
140 movl %r13d, %edx
141 movq %rax, 160(%rsp,%rbp)
142 addq $8, %rbx
143 movq %r15, 160(%rsp,%r12)
144 subq %rax, %rcx
145 movq %rcx, 168(%rsp,%rbp)
146 movq $2, 168(%rsp,%r12)
147 call __GI___writev
148 cmpq 8(%rsp), %rbx
149 jne .L8
150 addq $312, %rsp
151 popq %rbx
152 popq %rbp
153 popq %r12
154 popq %r13
155 popq %r14
156 popq %r15
158 .p2align 4,,10
159 .p2align 3
160 .L20:
161 leaq .LC0(%rip), %rsi
162 subq %rdi, %rdx
163 movq %rdx, %rdi
164 movq %rsi, 160(%rsp,%rcx)
165 jmp .L7
166 .p2align 4,,10
167 .p2align 3
168 .L19:
169 movq 88(%rsp), %rax
170 movq (%rax), %rdi
171 testq %rdi, %rdi
172 je .L21
173 leaq .LC5(%rip), %rax
174 movq $1, 184(%rsp)
175 movq %rdi, 152(%rsp)
176 movl $7, %r12d
177 movl $6, %ebp
178 movl $8, %r13d
179 movq %rax, 176(%rsp)
180 movl $5, %r8d
181 movq $4, 64(%rsp)
182 movq $3, 56(%rsp)
183 movl $2, %eax
184 jmp .L9
185 .p2align 4,,10
186 .p2align 3
187 .L21:
188 movl $3, %r12d
189 movl $2, %ebp
190 movl $4, %r13d
191 movl $1, %r8d
192 jmp .L3
193 .p2align 4,,10
194 .p2align 3
195 .L15:
196 rep ret
197 .size __GI___backtrace_symbols_fd, .-__GI___backtrace_symbols_fd
198 .weak backtrace_symbols_fd
199 .set backtrace_symbols_fd,__GI___backtrace_symbols_fd
200 .globl __backtrace_symbols_fd
201 .set __backtrace_symbols_fd,__GI___backtrace_symbols_fd
202 .hidden _itoa_word