github.com/rsc/go@v0.0.0-20150416155037-e040fd465409/src/runtime/rt0_darwin_arm64.s (about)

     1  // Copyright 2015 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  #include "textflag.h"
     6  
     7  // No need for _rt0_arm64_darwin as darwin/arm64 only
     8  // supports external linking.
     9  TEXT _rt0_arm64_darwin(SB),NOSPLIT,$-8
    10  	MOVD	$42, R0
    11  	MOVD	$1, R16	// SYS_exit
    12  	SVC	$0x80
    13  
    14  TEXT main(SB),NOSPLIT,$-8
    15  	MOVD	$runtime·rt0_go(SB), R2
    16  	BL	(R2)
    17  exit:
    18  	MOVD	$0, R0
    19  	MOVD	$1, R16	// sys_exit
    20  	SVC	$0x80
    21  	B	exit