	format	MS COFF
	extrn	_CloseAudioDriver_RtAudio
	extrn	_CreateAudioDriver_RtAudio
	extrn	_RtAudio_showWarnings
	extrn	___bb_blitz_blitz
	extrn	___bb_maxmod2_maxmod2
	extrn	__brl_audio_TAudioDriver_LoadSound
	extrn	__maxmod2_maxmod2_TMaxModDriver_Active
	extrn	__maxmod2_maxmod2_TMaxModDriver_AddAPI
	extrn	__maxmod2_maxmod2_TMaxModDriver_AllocChannel
	extrn	__maxmod2_maxmod2_TMaxModDriver_CreateSound
	extrn	__maxmod2_maxmod2_TMaxModDriver_Delete
	extrn	__maxmod2_maxmod2_TMaxModDriver_GetAPIName
	extrn	__maxmod2_maxmod2_TMaxModDriver_GetAPINames
	extrn	__maxmod2_maxmod2_TMaxModDriver_GetAPIid
	extrn	__maxmod2_maxmod2_TMaxModDriver_Name
	extrn	__maxmod2_maxmod2_TMaxModDriver_New
	extrn	__maxmod2_maxmod2_TMaxModDriver_RemoveAPI
	extrn	__maxmod2_maxmod2_TMaxModDriver_SetAPI
	extrn	__maxmod2_maxmod2_TMaxModDriver_SetNamedAPI
	extrn	__maxmod2_maxmod2_TMaxModDriver_Shutdown
	extrn	__maxmod2_maxmod2_TMaxModDriver_Startup
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectCompare
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbStringClass
	extrn	_maxmod2_maxmod2_TMaxModDriver
	extrn	_maxmod2_maxmod2_TMaxModStreamDriver
	public	___bb_rtaudio_rtaudio
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_Create
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_CreateSpecific
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_Delete
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_Init
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_New
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_optShowWarnings
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_registerAPIs
	public	__maxmod2_rtaudio_TMaxModRtAudioDriver_showWarnings
	public	_maxmod2_rtaudio_TMaxModRtAudioDriver
	section	"code" code
___bb_rtaudio_rtaudio:
	push	ebp
	mov	ebp,esp
	cmp	dword [_46],0
	je	_47
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_47:
	mov	dword [_46],1
	call	___bb_blitz_blitz
	call	___bb_maxmod2_maxmod2
	push	_maxmod2_rtaudio_TMaxModRtAudioDriver
	call	_bbObjectRegisterType
	add	esp,4
	mov	eax,0
	jmp	_22
_22:
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_rtaudio_TMaxModRtAudioDriver_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	__maxmod2_maxmod2_TMaxModDriver_New
	add	esp,4
	mov	dword [ebx],_maxmod2_rtaudio_TMaxModRtAudioDriver
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+100]
	add	esp,4
	mov	eax,0
	jmp	_25
_25:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_rtaudio_TMaxModRtAudioDriver_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	dword [ebx+12]
	call	_CloseAudioDriver_RtAudio
	add	esp,4
_28:
	mov	dword [ebx],_maxmod2_maxmod2_TMaxModDriver
	push	ebx
	call	__maxmod2_maxmod2_TMaxModDriver_Delete
	add	esp,4
	mov	eax,0
	jmp	_49
_49:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_rtaudio_TMaxModRtAudioDriver_CreateSpecific:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	push	_maxmod2_rtaudio_TMaxModRtAudioDriver
	call	_bbObjectNew
	add	esp,4
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	dec	dword [eax+4]
	jnz	_53
	push	eax
	call	_bbGCFree
	add	esp,4
_53:
	mov	dword [__maxmod2_maxmod2_TMaxModDriver_Active],esi
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	mov	esi,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	push	dword [__maxmod2_rtaudio_TMaxModRtAudioDriver_optShowWarnings]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,8
	push	eax
	call	_CreateAudioDriver_RtAudio
	add	esp,8
	mov	dword [esi+12],eax
	mov	ebx,edi
	inc	dword [ebx+4]
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	mov	eax,dword [eax+16]
	dec	dword [eax+4]
	jnz	_58
	push	eax
	call	_bbGCFree
	add	esp,4
_58:
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	mov	dword [eax+16],ebx
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	jmp	_32
_32:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_rtaudio_TMaxModRtAudioDriver_registerAPIs:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	_4
	push	0
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+72]
	add	esp,12
	push	_5
	push	6
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+72]
	add	esp,12
	push	_6
	push	7
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+72]
	add	esp,12
	mov	eax,0
	jmp	_35
_35:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_rtaudio_TMaxModRtAudioDriver_Create:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	mov	ebx,dword [ebp+8]
	cmp	dword [__maxmod2_maxmod2_TMaxModDriver_Active],_bbNullObject
	je	_62
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	jmp	_38
_62:
	push	_maxmod2_rtaudio_TMaxModRtAudioDriver
	call	_bbObjectNew
	add	esp,4
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	dec	dword [eax+4]
	jnz	_66
	push	eax
	call	_bbGCFree
	add	esp,4
_66:
	mov	dword [__maxmod2_maxmod2_TMaxModDriver_Active],esi
	mov	esi,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	push	dword [__maxmod2_rtaudio_TMaxModRtAudioDriver_optShowWarnings]
	push	0
	call	_CreateAudioDriver_RtAudio
	add	esp,8
	mov	dword [esi+12],eax
	inc	dword [ebx+4]
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	mov	eax,dword [eax+16]
	dec	dword [eax+4]
	jnz	_70
	push	eax
	call	_bbGCFree
	add	esp,4
_70:
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	mov	dword [eax+16],ebx
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	jmp	_38
_38:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_rtaudio_TMaxModRtAudioDriver_showWarnings:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	mov	dword [__maxmod2_rtaudio_TMaxModRtAudioDriver_optShowWarnings],eax
	cmp	dword [__maxmod2_maxmod2_TMaxModDriver_Active],_bbNullObject
	je	_71
	push	dword [__maxmod2_rtaudio_TMaxModRtAudioDriver_optShowWarnings]
	mov	eax,dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	push	dword [eax+12]
	call	_RtAudio_showWarnings
	add	esp,8
_71:
	mov	eax,0
	jmp	_41
_41:
	mov	esp,ebp
	pop	ebp
	ret
__maxmod2_rtaudio_TMaxModRtAudioDriver_Init:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	push	eax
	push	_7
	call	dword [_maxmod2_rtaudio_TMaxModRtAudioDriver+108]
	add	esp,8
	push	_7
	push	dword [__maxmod2_maxmod2_TMaxModDriver_Active]
	call	dword [_maxmod2_maxmod2_TMaxModStreamDriver+48]
	add	esp,8
	mov	eax,0
	jmp	_44
_44:
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_46:
	dd	0
	align	4
__maxmod2_rtaudio_TMaxModRtAudioDriver_optShowWarnings:
	dd	1
_9:
	db	"TMaxModRtAudioDriver",0
_10:
	db	"New",0
_11:
	db	"()i",0
_12:
	db	"Delete",0
_13:
	db	"CreateSpecific",0
_14:
	db	"($,$):TMaxModDriver",0
_15:
	db	"registerAPIs",0
_16:
	db	"Create",0
_17:
	db	"($):TMaxModDriver",0
_18:
	db	"showWarnings",0
_19:
	db	"(i)i",0
_20:
	db	"Init",0
_21:
	db	"($)i",0
	align	4
_8:
	dd	2
	dd	_9
	dd	6
	dd	_10
	dd	_11
	dd	16
	dd	6
	dd	_12
	dd	_11
	dd	20
	dd	7
	dd	_13
	dd	_14
	dd	108
	dd	6
	dd	_15
	dd	_11
	dd	100
	dd	7
	dd	_16
	dd	_17
	dd	104
	dd	7
	dd	_18
	dd	_19
	dd	112
	dd	7
	dd	_20
	dd	_21
	dd	116
	dd	0
	align	4
_maxmod2_rtaudio_TMaxModRtAudioDriver:
	dd	_maxmod2_maxmod2_TMaxModDriver
	dd	_bbObjectFree
	dd	_8
	dd	24
	dd	__maxmod2_rtaudio_TMaxModRtAudioDriver_New
	dd	__maxmod2_rtaudio_TMaxModRtAudioDriver_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__maxmod2_maxmod2_TMaxModDriver_Name
	dd	__maxmod2_maxmod2_TMaxModDriver_Startup
	dd	__maxmod2_maxmod2_TMaxModDriver_Shutdown
	dd	__maxmod2_maxmod2_TMaxModDriver_CreateSound
	dd	__maxmod2_maxmod2_TMaxModDriver_AllocChannel
	dd	__brl_audio_TAudioDriver_LoadSound
	dd	__maxmod2_maxmod2_TMaxModDriver_AddAPI
	dd	__maxmod2_maxmod2_TMaxModDriver_RemoveAPI
	dd	__maxmod2_maxmod2_TMaxModDriver_SetAPI
	dd	__maxmod2_maxmod2_TMaxModDriver_SetNamedAPI
	dd	__maxmod2_maxmod2_TMaxModDriver_GetAPIid
	dd	__maxmod2_maxmod2_TMaxModDriver_GetAPIName
	dd	__maxmod2_maxmod2_TMaxModDriver_GetAPINames
	dd	__maxmod2_rtaudio_TMaxModRtAudioDriver_registerAPIs
	dd	__maxmod2_rtaudio_TMaxModRtAudioDriver_Create
	dd	__maxmod2_rtaudio_TMaxModRtAudioDriver_CreateSpecific
	dd	__maxmod2_rtaudio_TMaxModRtAudioDriver_showWarnings
	dd	__maxmod2_rtaudio_TMaxModRtAudioDriver_Init
	align	4
_4:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	65,85,84,79,77,65,84,73,67
	align	4
_5:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	87,73,78,68,79,87,83,95,65,83,73,79
	align	4
_6:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	87,73,78,68,79,87,83,95,68,83
	align	4
_7:
	dd	_bbStringClass
	dd	2147483647
	dd	14
	dw	77,97,120,77,111,100,32,82,116,65,117,100,105,111
