/* autogenerated by gensyscalls.py */
#include <linux/err.h>
/* Android NDK R8e asm.h for x86 is broken. Use latest one from the repo */
#include "android/x86-asm.h"
#include <asm/unistd.h>

ENTRY(ftruncate64)
    pushl   %ebx
    pushl   %ecx
    pushl   %edx
    mov     16(%esp), %ebx
    mov     20(%esp), %ecx
    mov     24(%esp), %edx
    movl    $__NR_ftruncate64, %eax
    int     $0x80
    cmpl    $-MAX_ERRNO, %eax
    jb      1f
    negl    %eax
    pushl   %eax
    call    a2_set_errno
    addl    $4, %esp
    orl     $-1, %eax
1:
    popl    %edx
    popl    %ecx
    popl    %ebx
    ret
END(ftruncate64)
