	SECTION _TEXT CLASS=CODE USE32
	SECTION _DATA CLASS=DATA USE32
	SECTION _BSS  CLASS=BSS USE32
	SECTION _CONST  CLASS=CONST USE32
	SECTION _STRING  CLASS=STRING USE32
	SECTION cstartup CLASS=INITDATA USE32
	SECTION crundown CLASS=EXITDATA USE32
	SECTION cppinit  CLASS=CPPINIT USE32
	SECTION cppexit  CLASS=CPPEXIT USE32
	GROUP DGROUP _DATA _BSS _CONST _STRING

SECTION _TEXT
[GLOBAL	_ftell]
;
; Line 6:	{
;
_ftell:
	PUSH	EBP
	MOV	EBP,ESP
	SUB	ESP,BYTE 04H
;
; Line 7:		long rv=0;
;
	MOV	DWORD [EBP+0FFFFFFFCH],00H
;
; Line 8:		if (fgetpos(stream,&rv))
;
	LEA	EAX,[EBP+0FFFFFFFCH]
	PUSH	EAX
	PUSH	DWORD [EBP+08H]
	CALL	_fgetpos
	ADD	ESP,BYTE 08H
	TEST	EAX,EAX
	JE	SHORT	L_1
;
; Line 9:			return -1;
;
	MOV	EAX,0FFFFFFFFH
	JMP	L_3
L_1:
;
; Line 10:		return rv;
;
	MOV	EAX,DWORD [EBP+0FFFFFFFCH]
L_3:
	MOV	ESP,EBP
	POP	EBP
	RET


SECTION _TEXT
[EXTERN	_fgetpos]
