	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	_setbuf]
;
; Line 4:	{
;
_setbuf:
	PUSH	EBP
	MOV	EBP,ESP
	PUSH	EBX
	PUSH	ESI
	MOV	EBX,DWORD [EBP+0CH]
	MOV	ESI,DWORD [EBP+08H]
;
; Line 5:		if (buffer) 
;
	TEST	EBX,EBX
	JE	SHORT	L_1
;
; Line 6:			setvbuf(stream,buffer,1,512          );
;
	PUSH	DWORD 0200H
	PUSH	BYTE 01H
	PUSH	EBX
	PUSH	ESI
	CALL	_setvbuf
	ADD	ESP,BYTE 010H
	JMP	L_2
L_1:
;
; Line 8:			setvbuf(stream,buffer,4,512          );
;
	PUSH	DWORD 0200H
	PUSH	BYTE 04H
	PUSH	EBX
	PUSH	ESI
	CALL	_setvbuf
	ADD	ESP,BYTE 010H
L_2:
;
; Line 9:	}
;
	POP	ESI
	POP	EBX
	POP	EBP
	RET


SECTION _TEXT
[EXTERN	_setvbuf]
