clarify the purpose of this project
[nyanglibc.git] / libio / iofread_u.shared.s
blobc8fb3421bb6dde5dd84cb165e0870187b42794ef
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __GI___fread_unlocked
9 .hidden __GI___fread_unlocked
10 .type __GI___fread_unlocked, @function
11 __GI___fread_unlocked:
12 pushq %r12
13 pushq %rbp
14 pushq %rbx
15 movq %rsi, %rbx
16 imulq %rdx, %rbx
17 testq %rbx, %rbx
18 jne .L9
19 movq %rbx, %rax
20 popq %rbx
21 popq %rbp
22 popq %r12
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L9:
27 movq %rdx, %r12
28 movq %rsi, %rbp
29 movq %rbx, %rdx
30 movq %rdi, %rsi
31 movq %rcx, %rdi
32 call __GI__IO_sgetn
33 cmpq %rax, %rbx
34 je .L3
35 xorl %edx, %edx
36 divq %rbp
37 movq %rax, %rbx
38 movq %rbx, %rax
39 popq %rbx
40 popq %rbp
41 popq %r12
42 ret
43 .p2align 4,,10
44 .p2align 3
45 .L3:
46 movq %r12, %rbx
47 movq %rbx, %rax
48 popq %rbx
49 popq %rbp
50 popq %r12
51 ret
52 .size __GI___fread_unlocked, .-__GI___fread_unlocked
53 .globl __fread_unlocked
54 .set __fread_unlocked,__GI___fread_unlocked
55 .weak fread_unlocked
56 .set fread_unlocked,__fread_unlocked