github.com/Rookout/GoSDK@v0.1.48/pkg/services/instrumentation/module/pcsp_generator_funcs_arm64_test.s (about) 1 //go:build arm64 2 // +build arm64 3 4 #include "funcdata.h" 5 #include "textflag.h" 6 7 TEXT ·NoStackUsage(SB), NOSPLIT, $0 8 NO_LOCAL_POINTERS 9 ADD $1000, R12, R12 10 SUB $1000, R12, R12 11 RET 12 13 TEXT ·SubAndAdd(SB), NOSPLIT, $0 14 NO_LOCAL_POINTERS 15 ADD $1000, R12, R12 16 SUB $8, RSP, RSP 17 SUB $1000, R12, R12 18 ADD $8, RSP, RSP 19 RET 20 21 TEXT ·SubsAndAdds(SB), NOSPLIT, $0 22 NO_LOCAL_POINTERS 23 SUB $8, RSP, RSP 24 ADD $1000, R12, R12 25 SUB $8, RSP, RSP 26 ADD $8, RSP, RSP 27 ADD $8, RSP, RSP 28 SUB $8, RSP, RSP 29 ADD $8, RSP, RSP 30 SUB $1000, R12, R12 31 SUB $8, RSP, RSP 32 SUB $8, RSP, RSP 33 ADD $8, RSP, RSP 34 SUB $1000, R12, R12 35 ADD $8, RSP, RSP 36 RET 37 38 39 TEXT ·StrAndAdd(SB), NOSPLIT, $80 40 NO_LOCAL_POINTERS 41 ADD $1000, R12, R12 42 SUB $1000, R12, R12 43 RET 44 45 46 TEXT ·StrAddAndSubAdd(SB), NOSPLIT, $80 47 NO_LOCAL_POINTERS 48 ADD $1000, R12, R12 49 SUB $8, RSP, RSP 50 SUB $1000, R12, R12 51 ADD $8, RSP, RSP 52 RET 53 54 TEXT ·MovToSP(SB), NOSPLIT, $0 55 SUB $8, RSP, R20 56 MOVD R20, RSP 57 ADD $8, R20, RSP 58 RET 59 60 61 TEXT ·StrAddAndMovToSP(SB), NOSPLIT, $80 62 SUB $8, RSP, R20 63 MOVD R20, RSP 64 ADD $8, R20, RSP 65 RET 66 67 68 TEXT ·SkipSpecialBranch(SB), NOSPLIT, $80 69 JMP Finish 70 NOOP 71 SUB $8, RSP, R20 72 MOVD R20, RSP 73 ADD $8, R20, RSP 74 Finish: 75 SUB $8, RSP, RSP 76 ADD $8, RSP, RSP 77 RET