#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
TEXT runtime·sys_umtx_op(SB),NOSPLIT,$-4
MOVL $454, AX
INT $0x80
RET
TEXT runtime·thr_new(SB),NOSPLIT,$-4
MOVL $455, AX
INT $0x80
RET
TEXT runtime·thr_start(SB),NOSPLIT,$0
MOVL mm+0(FP), AX
MOVL m_g0(AX), BX
LEAL m_tls(AX), BP
MOVL 0(BP), DI
ADDL $7, DI
PUSHAL
PUSHL $32
PUSHL BP
PUSHL DI
CALL runtime·setldt(SB)
POPL AX
POPL AX
POPL AX
POPAL
get_tls(CX)
MOVL BX, g(CX)
MOVL AX, m(CX)
CALL runtime·stackcheck(SB)
CALL runtime·mstart(SB)
MOVL 0, AX
TEXT runtime·exit(SB),NOSPLIT,$-4
MOVL $1, AX
INT $0x80
MOVL $0xf1, 0xf1
RET
TEXT runtime·exit1(SB),NOSPLIT,$-4
MOVL $431, 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·getrlimit(SB),NOSPLIT,$-4
MOVL $194, AX
INT $0x80
RET
TEXT runtime·raise(SB),NOSPLIT,$16
LEAL 8(SP), AX
MOVL AX, 4(SP)
MOVL $432, AX
INT $0x80
MOVL 8(SP), AX
MOVL AX, 4(SP)
MOVL sig+0(FP), AX
MOVL AX, 8(SP)
MOVL $433, AX
INT $0x80
RET
TEXT runtime·mmap(SB),NOSPLIT,$32
LEAL arg0+0(FP), SI
LEAL 4(SP), DI
CLD
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVSL
MOVL $0, AX
STOSL
MOVL $477, 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 $83, AX
INT $0x80
RET
TEXT time·now(SB), NOSPLIT, $32
MOVL $232, AX
LEAL 12(SP), BX
MOVL $0, 4(SP)
MOVL BX, 8(SP)
INT $0x80
MOVL 12(SP), AX
MOVL 16(SP), BX
MOVL AX, sec+0(FP)
MOVL $0, sec+4(FP)
MOVL BX, nsec+8(FP)
RET
TEXT runtime·nanotime(SB), NOSPLIT, $32
MOVL $232, AX
LEAL 12(SP), BX
MOVL $4, 4(SP)
MOVL BX, 8(SP)
INT $0x80
MOVL 12(SP), AX
MOVL 16(SP), BX
MOVL $1000000000, CX
MULL CX
ADDL BX, AX
ADCL $0, DX
MOVL ret+0(FP), DI
MOVL AX, 0(DI)
MOVL DX, 4(DI)
RET
TEXT runtime·sigaction(SB),NOSPLIT,$-4
MOVL $416, 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
JMP sigtramp_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)
sigtramp_ret:
MOVL context+8(FP), AX
MOVL $0, 0(SP)
MOVL AX, 4(SP)
MOVL $417, AX
INT $0x80
MOVL $0xf1, 0xf1
RET
TEXT runtime·sigaltstack(SB),NOSPLIT,$0
MOVL $53, AX
INT $0x80
JAE 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·usleep(SB),NOSPLIT,$20
MOVL $0, DX
MOVL usec+0(FP), AX
MOVL $1000000, CX
DIVL CX
MOVL AX, 12(SP)
MOVL $1000, AX
MULL DX
MOVL AX, 16(SP)
MOVL $0, 0(SP)
LEAL 12(SP), AX
MOVL AX, 4(SP)
MOVL $0, 8(SP)
MOVL $240, AX
INT $0x80
RET
TEXT runtime·setldt(SB),NOSPLIT,$32
MOVL address+4(FP), BX
ADDL $0x8, BX
LEAL 16(SP), AX
MOVL $0, 0(AX)
MOVL $0, 4(AX)
MOVW BX, 2(AX)
SHRL $16, BX
MOVB BX, 4(AX)
SHRL $8, BX
MOVB BX, 7(AX)
MOVW $0xffff, 0(AX)
MOVB $0xCF, 6(AX)
MOVB $0xF2, 5(AX)
MOVL $0xffffffff, 0(SP)
MOVL AX, 4(SP)
MOVL $1, 8(SP)
CALL runtime·i386_set_ldt(SB)
SHLL $3, AX
ADDL $7, AX
MOVW AX, GS
RET
TEXT runtime·i386_set_ldt(SB),NOSPLIT,$16
LEAL args+0(FP), AX
MOVL $0, 0(SP)
MOVL $1, 4(SP)
MOVL AX, 8(SP)
MOVL $165, AX
INT $0x80
JAE 2(PC)
INT $3
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
JAE 3(PC)
NEGL AX
RET
MOVL $0, AX
RET
TEXT runtime·osyield(SB),NOSPLIT,$-4
MOVL $331, AX
INT $0x80
RET
TEXT runtime·sigprocmask(SB),NOSPLIT,$16
MOVL $0, 0(SP)
MOVL $3, 4(SP)
MOVL args+0(FP), AX
MOVL AX, 8(SP)
MOVL args+4(FP), AX
MOVL AX, 12(SP)
MOVL $340, AX
INT $0x80
JAE 2(PC)
MOVL $0xf1, 0xf1
RET
TEXT runtime·kqueue(SB),NOSPLIT,$0
MOVL $362, AX
INT $0x80
JAE 2(PC)
NEGL AX
RET
TEXT runtime·kevent(SB),NOSPLIT,$0
MOVL $363, 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
GLOBL runtime·tlsoffset(SB),$4