#include "../../cmd/ld/textflag.h"
TEXT ·Syscall(SB),NOSPLIT,$0-28
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX
LEAL 8(SP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
INT $0x80
JAE ok
MOVL $-1, 20(SP)
MOVL $-1, 24(SP)
MOVL AX, 28(SP)
CALL runtime·exitsyscall(SB)
RET
ok:
MOVL AX, 20(SP)
MOVL DX, 24(SP)
MOVL $0, 28(SP)
CALL runtime·exitsyscall(SB)
RET
TEXT ·Syscall6(SB),NOSPLIT,$0-40
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX
LEAL 8(SP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
INT $0x80
JAE ok6
MOVL $-1, 32(SP)
MOVL $-1, 36(SP)
MOVL AX, 40(SP)
CALL runtime·exitsyscall(SB)
RET
ok6:
MOVL AX, 32(SP)
MOVL DX, 36(SP)
MOVL $0, 40(SP)
CALL runtime·exitsyscall(SB)
RET
TEXT ·Syscall9(SB),NOSPLIT,$0-52
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX
LEAL 8(SP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
INT $0x80
JAE ok9
MOVL $-1, 44(SP)
MOVL $-1, 48(SP)
MOVL AX, 52(SP)
CALL runtime·exitsyscall(SB)
RET
ok9:
MOVL AX, 44(SP)
MOVL DX, 48(SP)
MOVL $0, 52(SP)
CALL runtime·exitsyscall(SB)
RET
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
MOVL 4(SP), AX
LEAL 8(SP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
INT $0x80
JAE ok1
MOVL $-1, 20(SP)
MOVL $-1, 24(SP)
MOVL AX, 28(SP)
RET
ok1:
MOVL AX, 20(SP)
MOVL DX, 24(SP)
MOVL $0, 28(SP)
RET
TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
MOVL 4(SP), AX
LEAL 8(SP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
INT $0x80
JAE ok2
MOVL $-1, 32(SP)
MOVL $-1, 36(SP)
MOVL AX, 40(SP)
RET
ok2:
MOVL AX, 32(SP)
MOVL DX, 36(SP)
MOVL $0, 40(SP)
RET