1103ccde8fe2f2c8abde914a8ba736b2e9cb8d20bElliott Hughes/* Generated by gensyscalls.py. Do not edit. */
2103ccde8fe2f2c8abde914a8ba736b2e9cb8d20bElliott Hughes
3ed74484dcbc2e156a6e5fa861a62425b12e55128Elliott Hughes#include <private/bionic_asm.h>
4b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes
5b4f7616fd618875768b8fffc122b58bdb84a9969Elliott HughesENTRY(sendfile64)
6b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    pushl   %ebx
715b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_def_cfa_offset 8
815b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_rel_offset ebx, 0
9b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    pushl   %ecx
1015b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_adjust_cfa_offset 4
1115b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_rel_offset ecx, 0
12b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    pushl   %edx
1315b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_adjust_cfa_offset 4
1415b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_rel_offset edx, 0
15b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    pushl   %esi
1615b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_adjust_cfa_offset 4
1715b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_rel_offset esi, 0
189ce09e423f24823d52f19ab8247e078977100132Mingwei Shi
199ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    call    __kernel_syscall
209ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    pushl   %eax
219ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    .cfi_adjust_cfa_offset 4
229ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    .cfi_rel_offset eax, 0
239ce09e423f24823d52f19ab8247e078977100132Mingwei Shi
249ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    mov     24(%esp), %ebx
259ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    mov     28(%esp), %ecx
269ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    mov     32(%esp), %edx
279ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    mov     36(%esp), %esi
28b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    movl    $__NR_sendfile64, %eax
299ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    call    *(%esp)
309ce09e423f24823d52f19ab8247e078977100132Mingwei Shi    addl    $4, %esp
319ce09e423f24823d52f19ab8247e078977100132Mingwei Shi
32b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    cmpl    $-MAX_ERRNO, %eax
33b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    jb      1f
34b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    negl    %eax
35b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    pushl   %eax
367efad83d430f4d824f2aaa75edea5106f6ff8aaeElliott Hughes    call    __set_errno_internal
37b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    addl    $4, %esp
38b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes1:
39b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    popl    %esi
40b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    popl    %edx
41b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    popl    %ecx
42b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    popl    %ebx
43b4f7616fd618875768b8fffc122b58bdb84a9969Elliott Hughes    ret
44b4f7616fd618875768b8fffc122b58bdb84a9969Elliott HughesEND(sendfile64)
45