clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_attr_destroy.s
blob98c611cc52fb0682eb85d9ba53570a37d538b284
1 .text
2 .p2align 4,,15
3 .globl __pthread_attr_destroy
4 .hidden __pthread_attr_destroy
5 .type __pthread_attr_destroy, @function
6 __pthread_attr_destroy:
7 movq 40(%rdi), %rax
8 testq %rax, %rax
9 je .L7
10 pushq %rbx
11 movq %rdi, %rbx
12 movq (%rax), %rdi
13 call free@PLT
14 movq 40(%rbx), %rdi
15 call free@PLT
16 xorl %eax, %eax
17 popq %rbx
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L7:
22 xorl %eax, %eax
23 ret
24 .size __pthread_attr_destroy, .-__pthread_attr_destroy
25 .weak pthread_attr_destroy
26 .set pthread_attr_destroy,__pthread_attr_destroy