	format	MS COFF
	extrn	___bb_audio_audio
	extrn	___bb_basic_basic
	extrn	___bb_blitz_blitz
	extrn	___bb_freeaudioaudio_freeaudioaudio
	extrn	___bb_wavloader_wavloader
	extrn	_bbGCFree
	extrn	_bbIncbinAdd
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectDtor
	extrn	_bbObjectFree
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbStringClass
	extrn	_brl_audio_LoadSound
	public	___bb_hardwire_sounds
	public	__bb_Sound_Click
	public	__bb_Sound_Delete
	public	__bb_Sound_Init
	public	__bb_Sound_New
	public	__bb_Sound_Path
	public	__bb_Sound_Pop
	public	__bb_Sound_Process
	public	__bb_Sound_clicksfx
	public	__bb_Sound_pathsfx
	public	__bb_Sound_play_click
	public	__bb_Sound_play_path
	public	__bb_Sound_play_pop
	public	__bb_Sound_popsfx
	public	_bb_Sound
	section	"code" code
___bb_hardwire_sounds:
	push	ebp
	mov	ebp,esp
	cmp	dword [_58],0
	je	_59
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_59:
	mov	dword [_58],1
	mov	eax,_51
	sub	eax,_50
	push	eax
	push	_50
	push	_49
	call	_bbIncbinAdd
	add	esp,12
	mov	eax,_54
	sub	eax,_53
	push	eax
	push	_53
	push	_52
	call	_bbIncbinAdd
	add	esp,12
	mov	eax,_57
	sub	eax,_56
	push	eax
	push	_56
	push	_55
	call	_bbIncbinAdd
	add	esp,12
	call	___bb_blitz_blitz
	call	___bb_audio_audio
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_wavloader_wavloader
	call	___bb_basic_basic
	push	_bb_Sound
	call	_bbObjectRegisterType
	add	esp,4
	mov	eax,0
	jmp	_31
_31:
	mov	esp,ebp
	pop	ebp
	ret
__bb_Sound_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_bb_Sound
	mov	eax,0
	jmp	_34
_34:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_Sound_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_37:
	mov	dword [eax],_bbObjectClass
	push	eax
	call	_bbObjectDtor
	add	esp,4
	mov	eax,0
	jmp	_60
_60:
	mov	esp,ebp
	pop	ebp
	ret
__bb_Sound_Init:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	0
	push	_18
	call	_brl_audio_LoadSound
	add	esp,8
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [__bb_Sound_popsfx]
	dec	dword [eax+4]
	jnz	_64
	push	eax
	call	_bbGCFree
	add	esp,4
_64:
	mov	dword [__bb_Sound_popsfx],ebx
	push	0
	push	_19
	call	_brl_audio_LoadSound
	add	esp,8
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [__bb_Sound_clicksfx]
	dec	dword [eax+4]
	jnz	_68
	push	eax
	call	_bbGCFree
	add	esp,4
_68:
	mov	dword [__bb_Sound_clicksfx],ebx
	push	0
	push	_20
	call	_brl_audio_LoadSound
	add	esp,8
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [__bb_Sound_pathsfx]
	dec	dword [eax+4]
	jnz	_72
	push	eax
	call	_bbGCFree
	add	esp,4
_72:
	mov	dword [__bb_Sound_pathsfx],ebx
	mov	dword [__bb_Sound_play_pop],0
	mov	dword [__bb_Sound_play_click],0
	mov	dword [__bb_Sound_play_path],0
	mov	eax,0
	jmp	_39
_39:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_Sound_Pop:
	push	ebp
	mov	ebp,esp
	mov	dword [__bb_Sound_play_pop],1
	mov	eax,0
	jmp	_41
_41:
	mov	esp,ebp
	pop	ebp
	ret
__bb_Sound_Click:
	push	ebp
	mov	ebp,esp
	mov	dword [__bb_Sound_play_click],1
	mov	eax,0
	jmp	_43
_43:
	mov	esp,ebp
	pop	ebp
	ret
__bb_Sound_Path:
	push	ebp
	mov	ebp,esp
	mov	dword [__bb_Sound_play_path],1
	mov	eax,0
	jmp	_45
_45:
	mov	esp,ebp
	pop	ebp
	ret
__bb_Sound_Process:
	push	ebp
	mov	ebp,esp
	cmp	dword [__bb_Sound_play_pop],0
	je	_73
	mov	eax,dword [__bb_Sound_popsfx]
	push	_bbNullObject
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,8
_73:
	cmp	dword [__bb_Sound_play_click],0
	je	_75
	mov	eax,dword [__bb_Sound_clicksfx]
	push	_bbNullObject
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,8
_75:
	cmp	dword [__bb_Sound_play_path],0
	je	_77
	mov	eax,dword [__bb_Sound_pathsfx]
	push	_bbNullObject
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,8
_77:
	mov	dword [__bb_Sound_play_pop],0
	mov	dword [__bb_Sound_play_click],0
	mov	dword [__bb_Sound_play_path],0
	mov	eax,0
	jmp	_47
_47:
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_58:
	dd	0
	align	4
_50:
	file	"E:/Src/BlitzMAX/Hardwire/SFX/pop.wav"
_51:
	align	4
_49:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	83,70,88,47,112,111,112,46,119,97,118
	align	4
_53:
	file	"E:/Src/BlitzMAX/Hardwire/SFX/click.wav"
_54:
	align	4
_52:
	dd	_bbStringClass
	dd	2147483647
	dd	13
	dw	83,70,88,47,99,108,105,99,107,46,119,97,118
	align	4
_56:
	file	"E:/Src/BlitzMAX/Hardwire/SFX/path.wav"
_57:
	align	4
_55:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	83,70,88,47,112,97,116,104,46,119,97,118
	align	4
__bb_Sound_popsfx:
	dd	_bbNullObject
	align	4
__bb_Sound_clicksfx:
	dd	_bbNullObject
	align	4
__bb_Sound_pathsfx:
	dd	_bbNullObject
	align	4
__bb_Sound_play_pop:
	dd	0
	align	4
__bb_Sound_play_click:
	dd	0
	align	4
__bb_Sound_play_path:
	dd	0
_22:
	db	"Sound",0
_23:
	db	"New",0
_24:
	db	"()i",0
_25:
	db	"Delete",0
_26:
	db	"Init",0
_27:
	db	"Pop",0
_28:
	db	"Click",0
_29:
	db	"Path",0
_30:
	db	"Process",0
	align	4
_21:
	dd	2
	dd	_22
	dd	6
	dd	_23
	dd	_24
	dd	16
	dd	6
	dd	_25
	dd	_24
	dd	20
	dd	7
	dd	_26
	dd	_24
	dd	48
	dd	7
	dd	_27
	dd	_24
	dd	52
	dd	7
	dd	_28
	dd	_24
	dd	56
	dd	7
	dd	_29
	dd	_24
	dd	60
	dd	7
	dd	_30
	dd	_24
	dd	64
	dd	0
	align	4
_bb_Sound:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_21
	dd	8
	dd	__bb_Sound_New
	dd	__bb_Sound_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_Sound_Init
	dd	__bb_Sound_Pop
	dd	__bb_Sound_Click
	dd	__bb_Sound_Path
	dd	__bb_Sound_Process
	align	4
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	105,110,99,98,105,110,58,58,83,70,88,47,112,111,112,46
	dw	119,97,118
	align	4
_19:
	dd	_bbStringClass
	dd	2147483647
	dd	21
	dw	105,110,99,98,105,110,58,58,83,70,88,47,99,108,105,99
	dw	107,46,119,97,118
	align	4
_20:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	105,110,99,98,105,110,58,58,83,70,88,47,112,97,116,104
	dw	46,119,97,118
