#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
TEXT runtimeツキsys_umtx_sleep(SB),NOSPLIT,$-4
MOVL $469, AX
INT $0x80
JAE 2(PC)
NEGL AX
RET
TEXT runtimeツキsys_umtx_wakeup(SB),NOSPLIT,$-4
MOVL $470, AX
INT $0x80
JAE 2(PC)
NEGL AX
RET
TEXT runtimeツキlwp_create(SB),NOSPLIT,$-4
MOVL $495, AX
INT $0x80
RET
TEXT runtimeツキlwp_start(SB),NOSPLIT,$0
MOVL mm+0(FP), BX
MOVL m_g0(BX), DX
LEAL m_tls(BX), BP
PUSHAL
PUSHL BP
CALL runtimeツキsettls(SB)
POPL AX
POPAL
get_tls(CX)
MOVL BX, m(CX)
MOVL DX, g(CX)
CALL runtimeツキstackcheck(SB)
MOVL 0(DX), DX
MOVL 0(BX), BX
PUSHAL
CALL runtimeツキemptyfunc(SB)
POPAL
CALL runtimeツキmstart(SB)
CALL runtimeツキexit1(SB)
MOVL $0x1234, 0x1005
RET
TEXT runtimeツキexit(SB),NOSPLIT,$-4
MOVL $1, AX
INT $0x80
MOVL $0xf1, 0xf1
RET
TEXT runtimeツキexit1(SB),NOSPLIT,$16
MOVL $0, 0(SP)
MOVL $0x10000, 4(SP)
MOVL $0, 8(SP)
MOVL $0, 12(SP)
MOVL $494, 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
MOVL $496, AX
INT $0x80
MOVL $0, 0(SP)
MOVL $-1, 4(SP)
MOVL AX, 8(SP)
MOVL sig+0(FP), AX
MOVL AX, 8(SP)
MOVL $497, 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 $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 $342, 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 $344, 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,$4
MOVL tls0+4(FP), AX
MOVL AX, 0(SP)
CALL runtimeツキsettls(SB)
RET
TEXT runtimeツキsettls(SB),NOSPLIT,$24
MOVL tlsbase+0(FP), CX
ADDL $8, CX
LEAL 16(SP), BX
MOVL CX, 16(SP)
MOVL $-1, 20(SP)
MOVL $0, 0(SP)
MOVL $0, 4(SP)
MOVL BX, 8(SP)
MOVL $8, 12(SP)
MOVL $472, AX
INT $0x80
JCC 2(PC)
MOVL $0xf1, 0xf1
MOVW AX, GS
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
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