global _start

section .data
	buffer	dw	0h

section .text

	mov		edi, 0
	mov		ebx, 765
	mov		eax, -122691
	cdq
	
	sub		ebx, eax
	sbb		edi, edx  
	jne		cont
	jb		failure
	cmp		ebx, 3
	jae		cont
failure:
	mov		eax, 'FAIL'
	mov		ecx, buffer
	mov		[ecx], eax
	mov		edx, 4
	call		write
cont:

exit:
	mov		eax, 01h		; exit()
	xor		ebx, ebx		; errno
	int		80h


write:
	mov		eax, 04h		; write()
	mov		ebx, 01h		; stdout
	int		80h
	ret