#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
TEXT runtime·exit(SB),NOSPLIT,$-4
MOVL $1, AX
INT $0x80
MOVL $0xf1, 0xf1
RET
TEXT runtime·exit1(SB),NOSPLIT,$-4
MOVL $310, AX
INT $0x80
JAE 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·open(SB),NOSPLIT,$-4
MOVL $5, AX
INT $0x80
RET
TEXT runtime·close(SB),NOSPLIT,$-4
MOVL $6, AX
INT $0x80
RET
TEXT runtime·read(SB),NOSPLIT,$-4
MOVL $3, AX
INT $0x80
RET
TEXT runtime·write(SB),NOSPLIT,$-4
MOVL $4, AX
INT $0x80
RET
TEXT runtime·usleep(SB),NOSPLIT,$24
MOVL $0, DX
MOVL usec+0(FP), AX
MOVL $1000000, CX
DIVL CX
MOVL AX, 12(SP)
MOVL $0, 16(SP)
MOVL $1000, AX
MULL DX
MOVL AX, 20(SP)
MOVL $0, 0(SP)
LEAL 12(SP), AX
MOVL AX, 4(SP)
MOVL $0, 8(SP)
MOVL $430, AX
INT $0x80
RET
TEXT runtime·raise(SB),NOSPLIT,$12
MOVL $311, AX
INT $0x80
MOVL $0, 0(SP)
MOVL AX, 4(SP)
MOVL sig+0(FP), AX
MOVL AX, 8(SP)
MOVL $318, AX
INT $0x80
RET
TEXT runtime·mmap(SB),NOSPLIT,$36
LEAL arg0+0(FP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVL $0, AX
STOSL
MOVSL
MOVL $0, AX
STOSL
MOVL $197, AX
INT $0x80
RET
TEXT runtime·munmap(SB),NOSPLIT,$-4
MOVL $73, AX
INT $0x80
JAE 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·madvise(SB),NOSPLIT,$-4
MOVL $75, AX
INT $0x80
RET
TEXT runtime·setitimer(SB),NOSPLIT,$-4
MOVL $425, AX
INT $0x80
RET
TEXT time·now(SB), NOSPLIT, $32
LEAL 12(SP), BX
MOVL $0, 4(SP)
MOVL BX, 8(SP)
MOVL $427, AX
INT $0x80
MOVL 12(SP), AX
MOVL AX, sec+0(FP)
MOVL 16(SP), AX
MOVL AX, sec+4(FP)
MOVL 20(SP), BX
MOVL BX, nsec+8(FP)
RET
TEXT runtime·nanotime(SB),NOSPLIT,$32
LEAL 12(SP), BX
MOVL $0, 4(SP)
MOVL BX, 8(SP)
MOVL $427, AX
INT $0x80
MOVL 16(SP), CX
IMULL $1000000000, CX
MOVL 12(SP), AX
MOVL $1000000000, BX
MULL BX
MOVL 20(SP), BX
ADDL BX, AX
ADCL CX, DX
MOVL ret+0(FP), DI
MOVL AX, 0(DI)
MOVL DX, 4(DI)
RET
TEXT runtime·getcontext(SB),NOSPLIT,$-4
MOVL $307, AX
INT $0x80
JAE 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·sigprocmask(SB),NOSPLIT,$-4
MOVL $293, AX
INT $0x80
JAE 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·sigreturn_tramp(SB),NOSPLIT,$0
LEAL 140(SP), AX
MOVL AX, 4(SP)
MOVL $308, AX
INT $0x80
MOVL $-1, 4(SP)
MOVL $1, AX
INT $0x80
TEXT runtime·sigaction(SB),NOSPLIT,$24
LEAL arg0+0(FP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
LEAL runtime·sigreturn_tramp(SB), AX
STOSL
MOVL $2, AX
STOSL
MOVL $340, AX
INT $0x80
JAE 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·sigtramp(SB),NOSPLIT,$44
get_tls(CX)
MOVL m(CX), BX
CMPL BX, $0
JNE 6(PC)
MOVL signo+0(FP), BX
MOVL BX, 0(SP)
MOVL $runtime·badsignal(SB), AX
CALL AX
RET
MOVL g(CX), DI
MOVL DI, 20(SP)
MOVL m_gsignal(BX), BX
MOVL BX, g(CX)
MOVL signo+0(FP), BX
MOVL BX, 0(SP)
MOVL info+4(FP), BX
MOVL BX, 4(SP)
MOVL context+8(FP), BX
MOVL BX, 8(SP)
MOVL DI, 12(SP)
CALL runtime·sighandler(SB)
get_tls(CX)
MOVL 20(SP), BX
MOVL BX, g(CX)
RET
TEXT runtime·lwp_create(SB),NOSPLIT,$16
MOVL $0, 0(SP)
MOVL context+0(FP), AX
MOVL AX, 4(SP)
MOVL flags+4(FP), AX
MOVL AX, 8(SP)
MOVL lwpid+8(FP), AX
MOVL AX, 12(SP)
MOVL $309, AX
INT $0x80
JCC 2(PC)
NEGL AX
RET
TEXT runtime·lwp_tramp(SB),NOSPLIT,$0
LEAL m_tls(BX), BP
PUSHAL
PUSHL BP
CALL runtime·settls(SB)
POPL AX
POPAL
get_tls(AX)
MOVL DX, g(AX)
MOVL BX, m(AX)
CALL runtime·stackcheck(SB)
MOVL 0(DX), DX
MOVL 0(BX), BX
PUSHAL
CALL runtime·emptyfunc(SB)
POPAL
CALL SI
CALL runtime·exit1(SB)
MOVL $0x1234, 0x1005
RET
TEXT runtime·sigaltstack(SB),NOSPLIT,$-8
MOVL $281, AX
MOVL new+4(SP), BX
MOVL old+8(SP), CX
INT $0x80
CMPL AX, $0xfffff001
JLS 2(PC)
INT $3
RET
TEXT runtime·setldt(SB),NOSPLIT,$8
MOVL 16(SP), AX
MOVL AX, 0(SP)
CALL runtime·settls(SB)
RET
TEXT runtime·settls(SB),NOSPLIT,$16
MOVL base+0(FP), CX
ADDL $8, CX
MOVL $0, 0(SP)
MOVL CX, 4(SP)
MOVL $317, AX
INT $0x80
JCC 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·osyield(SB),NOSPLIT,$-4
MOVL $350, AX
INT $0x80
RET
TEXT runtime·lwp_park(SB),NOSPLIT,$-4
MOVL $434, AX
INT $0x80
RET
TEXT runtime·lwp_unpark(SB),NOSPLIT,$-4
MOVL $321, AX
INT $0x80
RET
TEXT runtime·lwp_self(SB),NOSPLIT,$-4
MOVL $311, AX
INT $0x80
RET
TEXT runtime·sysctl(SB),NOSPLIT,$28
LEAL arg0+0(FP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVL $202, AX
INT $0x80
JCC 3(PC)
NEGL AX
RET
MOVL $0, AX
RET
GLOBL runtime·tlsoffset(SB),$4
TEXT runtime·kqueue(SB),NOSPLIT,$0
MOVL $344, AX
INT $0x80
JAE 2(PC)
NEGL AX
RET
TEXT runtime·kevent(SB),NOSPLIT,$0
MOVL $435, AX
INT $0x80
JAE 2(PC)
NEGL AX
RET
TEXT runtime·closeonexec(SB),NOSPLIT,$32
MOVL $92, AX
MOVL fd+0(FP), BX
MOVL BX, 4(SP)
MOVL $2, 8(SP)
MOVL $1, 12(SP)
INT $0x80
JAE 2(PC)
NEGL AX
RET