	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	_fsetpos]
;
; Line 4:	{
;
_fsetpos:
	PUSH	EBP
	MOV	EBP,ESP
	PUSH	ESI
	MOV	ESI,DWORD [EBP+08H]
;
; Line 5:		if (stream->token == 0x444c)
;
	MOVSX	EAX,WORD [ESI+01DH]
	CMP	EAX,0444CH
	JNE	SHORT	L_1
;
; Line 6:			stream->flags &= ~0x0020                   ;
;
	BTR	DWORD [ESI+04H],05H
L_1:
;
; Line 7:		return fseek(stream,*currentpos,0);
;
	PUSH	BYTE 00H
	MOV	EAX,DWORD [EBP+0CH]
	PUSH	DWORD [EAX+00H]
	PUSH	ESI
	CALL	_fseek
	ADD	ESP,BYTE 0CH
L_3:
	POP	ESI
	POP	EBP
	RET


SECTION _TEXT
[EXTERN	_fseek]
