#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
TEXT runtime·exit(SB),NOSPLIT,$0
MOVL $252, AX
MOVL 4(SP), BX
CALL *runtime·_vdso(SB)
INT $3
RET
TEXT runtime·exit1(SB),NOSPLIT,$0
MOVL $1, AX
MOVL 4(SP), BX
CALL *runtime·_vdso(SB)
INT $3
RET
TEXT runtime·open(SB),NOSPLIT,$0
MOVL $5, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·close(SB),NOSPLIT,$0
MOVL $6, AX
MOVL 4(SP), BX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·write(SB),NOSPLIT,$0
MOVL $4, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·read(SB),NOSPLIT,$0
MOVL $3, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·getrlimit(SB),NOSPLIT,$0
MOVL $191, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·usleep(SB),NOSPLIT,$8
MOVL $0, DX
MOVL usec+0(FP), AX
MOVL $1000000, CX
DIVL CX
MOVL AX, 0(SP)
MOVL DX, 4(SP)
MOVL $142, AX
MOVL $0, BX
MOVL $0, CX
MOVL $0, DX
MOVL $0, SI
LEAL 0(SP), DI
CALL *runtime·_vdso(SB)
RET
TEXT runtime·raise(SB),NOSPLIT,$12
MOVL $224, AX
CALL *runtime·_vdso(SB)
MOVL AX, BX
MOVL sig+0(FP), CX
MOVL $238, AX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·setitimer(SB),NOSPLIT,$0-24
MOVL $104, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·mincore(SB),NOSPLIT,$0-24
MOVL $218, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
CALL *runtime·_vdso(SB)
RET
TEXT time·now(SB), NOSPLIT, $32
MOVL $265, AX
MOVL $0, BX
LEAL 8(SP), CX
MOVL $0, DX
CALL *runtime·_vdso(SB)
MOVL 8(SP), AX
MOVL 12(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 $265, AX
MOVL $1, BX
LEAL 8(SP), CX
MOVL $0, DX
CALL *runtime·_vdso(SB)
MOVL 8(SP), AX
MOVL 12(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·rtsigprocmask(SB),NOSPLIT,$0
MOVL $175, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
MOVL 16(SP), SI
CALL *runtime·_vdso(SB)
CMPL AX, $0xfffff001
JLS 2(PC)
INT $3
RET
TEXT runtime·rt_sigaction(SB),NOSPLIT,$0
MOVL $174, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
MOVL 16(SP), SI
CALL *runtime·_vdso(SB)
RET
TEXT runtime·sigtramp(SB),NOSPLIT,$44
get_tls(CX)
MOVL m(CX), BX
CMPL BX, $0
JNE 6(PC)
MOVL sig+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(CX), BX
MOVL m_gsignal(BX), BX
MOVL BX, g(CX)
MOVL sig+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·sigreturn(SB),NOSPLIT,$0
MOVL $173, AX
INT $0x80
INT $3
RET
TEXT runtime·mmap(SB),NOSPLIT,$0
MOVL $192, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
MOVL 16(SP), SI
MOVL 20(SP), DI
MOVL 24(SP), BP
SHRL $12, BP
CALL *runtime·_vdso(SB)
CMPL AX, $0xfffff001
JLS 3(PC)
NOTL AX
INCL AX
RET
TEXT runtime·munmap(SB),NOSPLIT,$0
MOVL $91, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
CALL *runtime·_vdso(SB)
CMPL AX, $0xfffff001
JLS 2(PC)
INT $3
RET
TEXT runtime·madvise(SB),NOSPLIT,$0
MOVL $219, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·futex(SB),NOSPLIT,$0
MOVL $240, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
MOVL 16(SP), SI
MOVL 20(SP), DI
MOVL 24(SP), BP
CALL *runtime·_vdso(SB)
RET
TEXT runtime·clone(SB),NOSPLIT,$0
MOVL $120, AX
MOVL flags+4(SP), BX
MOVL stack+8(SP), CX
MOVL $0, DX
MOVL $0, DI
SUBL $16, CX
MOVL mm+12(SP), SI
MOVL SI, 0(CX)
MOVL gg+16(SP), SI
MOVL SI, 4(CX)
MOVL fn+20(SP), SI
MOVL SI, 8(CX)
MOVL $1234, 12(CX)
INT $0x80
CMPL AX, $0
JEQ 2(PC)
RET
MOVL 12(SP), BP
CMPL BP, $1234
JEQ 2(PC)
INT $3
MOVL $224, AX
CALL *runtime·_vdso(SB)
MOVL 0(SP), BX
MOVL 4(SP), DX
MOVL 8(SP), SI
MOVL AX, m_procid(BX)
LEAL m_tls(BX), 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(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 $186, AX
MOVL new+4(SP), BX
MOVL old+8(SP), CX
CALL *runtime·_vdso(SB)
CMPL AX, $0xfffff001
JLS 2(PC)
INT $3
RET
#define SEG_32BIT 0x01
#define CONTENTS_DATA 0x00
#define CONTENTS_STACK 0x02
#define CONTENTS_CODE 0x04
#define READ_EXEC_ONLY 0x08
#define LIMIT_IN_PAGES 0x10
#define SEG_NOT_PRESENT 0x20
#define USEABLE 0x40
TEXT runtime·setldt(SB),NOSPLIT,$32
MOVL entry+0(FP), BX
MOVL address+4(FP), CX
ADDL $0x8, CX
MOVL CX, 0(CX)
LEAL 16(SP), AX
MOVL BX, 0(AX)
MOVL CX, 4(AX)
MOVL $0xfffff, 8(AX)
MOVL $(SEG_32BIT|LIMIT_IN_PAGES|USEABLE|CONTENTS_DATA), 12(AX)
MOVL $1, BX
MOVL AX, CX
MOVL $16, DX
MOVL $123, AX
CALL *runtime·_vdso(SB)
CMPL AX, $0xfffff001
JLS 2(PC)
INT $3
MOVL entry+0(FP), AX
SHLL $3, AX
ADDL $7, AX
MOVW AX, GS
RET
TEXT runtime·osyield(SB),NOSPLIT,$0
MOVL $158, AX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·sched_getaffinity(SB),NOSPLIT,$0
MOVL $242, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·epollcreate(SB),NOSPLIT,$0
MOVL $254, AX
MOVL 4(SP), BX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·epollcreate1(SB),NOSPLIT,$0
MOVL $329, AX
MOVL 4(SP), BX
CALL *runtime·_vdso(SB)
RET
TEXT runtime·epollctl(SB),NOSPLIT,$0
MOVL $255, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
MOVL 16(SP), SI
CALL *runtime·_vdso(SB)
RET
TEXT runtime·epollwait(SB),NOSPLIT,$0
MOVL $256, AX
MOVL 4(SP), BX
MOVL 8(SP), CX
MOVL 12(SP), DX
MOVL 16(SP), SI
CALL *runtime·_vdso(SB)
RET
TEXT runtime·closeonexec(SB),NOSPLIT,$0
MOVL $55, AX
MOVL 4(SP), BX
MOVL $2, CX
MOVL $1, DX
CALL *runtime·_vdso(SB)
RET