	.ifdef	NetBSD
	.section	.note.netbsd.ident, "a"
	.long	7		# Name size
	.long	4		# Description size
	.long	1
	.ascii	"NetBSD\000\000"
	.long	400000000	# NetBSD version

	.endif
	.section	.text
	.intel_syntax
	.global	_start
	.type	_start, @function
_start:
	mov	%eax, [%esp]		# argc
	mov	%ebx, [%esp + 4]	# file
	lea	%ecx, [%esp + 8]	# %ecx = argv
	sal	%eax, 2			# argc = argc * 4
	mov	%edx, %ecx		# envp = argv
	add	%edx, %eax		# envp = envp + %eax
	push	%edx			# envp
	push	%ecx			# argv
	push	%ebx			# file
	call	main
	.ifdef	NetBSD
	push	%eax			# Status
	push	0			# Extra double-word
	.else
	mov	%ebx, %eax		# Status
	.endif
	mov	%eax, 1			# Exit system call
	int	128
