	format	MS COFF
	extrn	_LoadMusic_Wav
	extrn	___bb_blitz_blitz
	extrn	___bb_maxmod2_maxmod2
	extrn	__maxmod2_maxmod2_TMusic_Delete
	extrn	__maxmod2_maxmod2_TMusic_FillBuffer
	extrn	__maxmod2_maxmod2_TMusic_GetBits
	extrn	__maxmod2_maxmod2_TMusic_GetChannels
	extrn	__maxmod2_maxmod2_TMusic_GetFormat
	extrn	__maxmod2_maxmod2_TMusic_GetLength
	extrn	__maxmod2_maxmod2_TMusic_GetLoopMode
	extrn	__maxmod2_maxmod2_TMusic_GetPosition
	extrn	__maxmod2_maxmod2_TMusic_GetSampleRate
	extrn	__maxmod2_maxmod2_TMusic_GetStatus
	extrn	__maxmod2_maxmod2_TMusic_IsSeekable
	extrn	__maxmod2_maxmod2_TMusic_New
	extrn	__maxmod2_maxmod2_TMusic_Seek
	extrn	__maxmod2_maxmod2_TMusic_SetLoopMode
	extrn	__maxmod2_maxmod2_TMusic_SetStatus
	extrn	_bbNullObject
	extrn	_bbObjectCompare
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbStringClass
	extrn	_maxmod2_maxmod2_MaxModLoader
	extrn	_maxmod2_maxmod2_TMusic
	public	___bb_wav_wav
	public	__maxmod2_wav_TMusicWav_Delete
	public	__maxmod2_wav_TMusicWav_Loader
	public	__maxmod2_wav_TMusicWav_New
	public	_maxmod2_wav_TMusicWav
	section	"code" code
___bb_wav_wav:
	push	ebp
	mov	ebp,esp
	cmp	dword [_25],0
	je	_26
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_26:
	mov	dword [_25],1
	call	___bb_blitz_blitz
	call	___bb_maxmod2_maxmod2
	push	_maxmod2_wav_TMusicWav
	call	_bbObjectRegisterType
	add	esp,4
	push	_5
	push	_4
	push	dword [_maxmod2_wav_TMusicWav+48]
	call	dword [_maxmod2_maxmod2_MaxModLoader+48]
	add	esp,12
	mov	eax,0
	jmp	_13
_13:
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_wav_TMusicWav_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	__maxmod2_maxmod2_TMusic_New
	add	esp,4
	mov	dword [ebx],_maxmod2_wav_TMusicWav
	mov	eax,0
	jmp	_16
_16:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_wav_TMusicWav_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	cmp	dword [ebx+8],0
	je	_27
	mov	eax,dword [ebx+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
_27:
_19:
	mov	dword [ebx],_maxmod2_maxmod2_TMusic
	push	ebx
	call	__maxmod2_maxmod2_TMusic_Delete
	add	esp,4
	mov	eax,0
	jmp	_29
_29:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_wav_TMusicWav_Loader:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	mov	esi,dword [ebp+8]
	cmp	esi,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_30
	mov	eax,_bbNullObject
	jmp	_23
_30:
	push	esi
	call	_LoadMusic_Wav
	add	esp,4
	mov	ebx,eax
	cmp	ebx,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_32
	mov	eax,_bbNullObject
	jmp	_23
_32:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	push	_maxmod2_wav_TMusicWav
	call	_bbObjectNew
	add	esp,4
	mov	dword [eax+8],ebx
	mov	dword [eax+12],esi
	jmp	_23
_23:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_25:
	dd	0
_7:
	db	"TMusicWav",0
_8:
	db	"New",0
_9:
	db	"()i",0
_10:
	db	"Delete",0
_11:
	db	"Loader",0
_12:
	db	"(:IMaxModStream,$):TMusic",0
	align	4
_6:
	dd	2
	dd	_7
	dd	6
	dd	_8
	dd	_9
	dd	16
	dd	6
	dd	_10
	dd	_9
	dd	20
	dd	7
	dd	_11
	dd	_12
	dd	48
	dd	0
	align	4
_maxmod2_wav_TMusicWav:
	dd	_maxmod2_maxmod2_TMusic
	dd	_bbObjectFree
	dd	_6
	dd	20
	dd	__maxmod2_wav_TMusicWav_New
	dd	__maxmod2_wav_TMusicWav_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__maxmod2_wav_TMusicWav_Loader
	dd	__maxmod2_maxmod2_TMusic_FillBuffer
	dd	__maxmod2_maxmod2_TMusic_Seek
	dd	__maxmod2_maxmod2_TMusic_IsSeekable
	dd	__maxmod2_maxmod2_TMusic_GetLength
	dd	__maxmod2_maxmod2_TMusic_GetStatus
	dd	__maxmod2_maxmod2_TMusic_SetStatus
	dd	__maxmod2_maxmod2_TMusic_GetPosition
	dd	__maxmod2_maxmod2_TMusic_GetChannels
	dd	__maxmod2_maxmod2_TMusic_GetBits
	dd	__maxmod2_maxmod2_TMusic_GetSampleRate
	dd	__maxmod2_maxmod2_TMusic_GetLoopMode
	dd	__maxmod2_maxmod2_TMusic_SetLoopMode
	dd	__maxmod2_maxmod2_TMusic_GetFormat
	align	4
_5:
	dd	_bbStringClass
	dd	2147483647
	dd	3
	dw	119,97,118
	align	4
_4:
	dd	_bbStringClass
	dd	2147483647
	dd	21
	dw	87,97,118,101,102,111,114,109,32,97,117,100,105,111,32,34
	dw	46,119,97,118,34
