#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
TEXT runtime·exit(SB),NOSPLIT,$-4
MOVW 0(FP), R0
SWI $0xa00001
MOVW.CS $0, R8
MOVW.CS R8, (R8)
RET
TEXT runtime·exit1(SB),NOSPLIT,$-4
SWI $0xa00136
MOVW $1, R8
MOVW R8, (R8)
RET
TEXT runtime·open(SB),NOSPLIT,$-8
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
SWI $0xa00005
RET
TEXT runtime·close(SB),NOSPLIT,$-8
MOVW 0(FP), R0
SWI $0xa00006
RET
TEXT runtime·read(SB),NOSPLIT,$-8
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
SWI $0xa00003
RET
TEXT runtime·write(SB),NOSPLIT,$-4
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
SWI $0xa00004
RET
TEXT runtime·lwp_create(SB),NOSPLIT,$0
MOVW context+0(FP), R0
MOVW flags+4(FP), R1
MOVW lwpid+8(FP), R2
SWI $0xa00135
RET
TEXT runtime·osyield(SB),NOSPLIT,$0
SWI $0xa0015e
RET
TEXT runtime·lwp_park(SB),NOSPLIT,$0
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
MOVW 12(FP), R3
SWI $0xa001b2
RET
TEXT runtime·lwp_unpark(SB),NOSPLIT,$0
MOVW 0(FP), R0
MOVW 4(FP), R1
SWI $0xa00141
RET
TEXT runtime·lwp_self(SB),NOSPLIT,$0
SWI $0xa00137
RET
TEXT runtime·lwp_tramp(SB),NOSPLIT,$0
MOVW R0, m
MOVW R1, g
BL runtime·emptyfunc(SB)
BL (R2)
MOVW $2, R8
MOVW R8, (R8)
RET
TEXT runtime·usleep(SB),NOSPLIT,$16
MOVW usec+0(FP), R0
MOVW R0, R2
MOVW $1000000, R1
DIV R1, R0
MOVW R0, 4(R13)
MOVW $0, R0
MOVW R0, 8(R13)
MOD R1, R2
MOVW $1000, R1
MUL R1, R2
MOVW R2, 12(R13)
MOVW $4(R13), R0
MOVW $0, R1
SWI $0xa001ae
RET
TEXT runtime·raise(SB),NOSPLIT,$16
SWI $0xa00137
MOVW sig+0(FP), R1
SWI $0xa0013e
RET
TEXT runtime·setitimer(SB),NOSPLIT,$-4
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
SWI $0xa001a9
RET
TEXT time·now(SB), NOSPLIT, $32
MOVW $0, R0
MOVW $8(R13), R1
SWI $0xa001ab
MOVW 8(R13), R0
MOVW 12(R13), R1
MOVW 16(R13), R2
MOVW R0, 0(FP)
MOVW R1, 4(FP)
MOVW R2, 8(FP)
RET
TEXT runtime·nanotime(SB), NOSPLIT, $32
MOVW $0, R0
MOVW $8(R13), R1
SWI $0xa001ab
MOVW 8(R13), R0
MOVW 12(R13), R4
MOVW 16(R13), R2
MOVW $1000000000, R3
MULLU R0, R3, (R1, R0)
MUL R3, R4
ADD.S R2, R0
ADC R4, R1
MOVW 0(FP), R3
MOVW R0, 0(R3)
MOVW R1, 4(R3)
RET
TEXT runtime·getcontext(SB),NOSPLIT,$-4
MOVW 0(FP), R0
SWI $0xa00133
MOVW.CS $0, R8
MOVW.CS R8, (R8)
RET
TEXT runtime·sigprocmask(SB),NOSPLIT,$0
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
SWI $0xa00125
MOVW.CS $0, R8
MOVW.CS R8, (R8)
RET
TEXT runtime·sigreturn_tramp(SB),NOSPLIT,$-4
ADD $0x80, R13, R0
SWI $0xa00134
MOVW $0x4242, R0
SWI $0xa00001
B -2(PC)
TEXT runtime·sigaction(SB),NOSPLIT,$4
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
MOVW $runtime·sigreturn_tramp(SB), R3
MOVW $2, R4
MOVW R4, 4(R13)
ADD $4, R13
SWI $0xa00154
SUB $4, R13
MOVW.CS $3, R8
MOVW.CS R8, (R8)
RET
TEXT runtime·sigtramp(SB),NOSPLIT,$24
MOVW R0, 4(R13)
MOVB runtime·iscgo(SB), R0
CMP $0, R0
BL.NE runtime·load_gm(SB)
CMP $0, m
BNE 4(PC)
MOVW $runtime·badsignal(SB), R11
BL (R11)
RET
MOVW g, R4
MOVW g, 20(R13)
MOVW m_gsignal(m), g
MOVW R1, 8(R13)
MOVW R2, 12(R13)
MOVW R4, 16(R13)
BL runtime·sighandler(SB)
MOVW 20(R13), g
RET
TEXT runtime·mmap(SB),NOSPLIT,$12
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
MOVW 12(FP), R3
MOVW 16(FP), R4
MOVW R4, 4(R13)
MOVW 20(FP), R5
MOVW R5, 8(R13)
MOVW $0, R6
MOVW R6, 12(R13)
ADD $4, R13
SWI $0xa000c5
SUB $4, R13
RET
TEXT runtime·munmap(SB),NOSPLIT,$0
MOVW 0(FP), R0
MOVW 4(FP), R1
SWI $0xa00049
MOVW.CS $0, R8
MOVW.CS R8, (R8)
RET
TEXT runtime·madvise(SB),NOSPLIT,$0
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
SWI $0xa0004b
RET
TEXT runtime·sigaltstack(SB),NOSPLIT,$-4
MOVW 0(FP), R0
MOVW 4(FP), R1
SWI $0xa00119
MOVW.CS $0, R8
MOVW.CS R8, (R8)
RET
TEXT runtime·sysctl(SB),NOSPLIT,$8
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
MOVW 12(FP), R3
MOVW 16(FP), R4
MOVW R4, 4(R13)
MOVW 20(FP), R4
MOVW R4, 8(R13)
ADD $4, R13
SWI $0xa000ca
SUB $4, R13
RET
TEXT runtime·kqueue(SB),NOSPLIT,$0
SWI $0xa00158
RSB.CS $0, R0
RET
TEXT runtime·kevent(SB),NOSPLIT,$8
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
MOVW 12(FP), R3
MOVW 16(FP), R4
MOVW R4, 4(R13)
MOVW 20(FP), R4
MOVW R4, 8(R13)
ADD $4, R13
SWI $0xa001b3
RSB.CS $0, R0
SUB $4, R13
RET
TEXT runtime·closeonexec(SB),NOSPLIT,$0
MOVW 0(FP), R0
MOVW $2, R1
MOVW $1, R2
SWI $0xa0005c
RET
TEXT runtime·casp(SB),NOSPLIT,$0
B runtime·cas(SB)
TEXT runtime·cas(SB),NOSPLIT,$0
B runtime·armcas(SB)
TEXT runtime·read_tls_fallback(SB),NOSPLIT,$-4
MOVM.WP [R1, R2, R3, R12], (R13)
SWI $0x00a0013c
MOVM.IAW (R13), [R1, R2, R3, R12]
RET