	.section	.text
	.intel_syntax
	.global write
	.type	write, @function
write:
	mov	%eax, 4			# Write system call
	.ifdef	NetBSD
	int	128
	.else
	push	%ebx
	mov	%ebx, [%esp + 8]
	mov	%ecx, [%esp + 12]
	mov	%edx, [%esp + 16]
	int	128
	pop	%ebx
	.endif
	ret
