	.LEVEL	2.0N

	.SPACE	$TEXT$,SORT=8
	.SUBSPA	$CODE$,QUAD=0,ALIGN=4,ACCESS=0x2c,CODE_ONLY,SORT=24
get_stack_pos
	.PROC
	.CALLINFO CALLER,FRAME=16,ORDERING_AWARE
        .ENTRY
	copy %sp,%r28
	bve,n (%r2)
        .EXIT
	.PROCEND	;out=28;

	.SPACE	$TEXT$
	.SUBSPA	$CODE$
	.SPACE	$PRIVATE$,SORT=16
	.SPACE	$TEXT$
	.SUBSPA	$CODE$
	.EXPORT	get_stack_pos,ENTRY,PRIV_LEV=3,RTNVAL=GR,LONG_RETURN
	.END
