	format	MS COFF
	extrn	___bb_algorithm_algorithm
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_bank_bank
	extrn	___bb_bankstream_bankstream
	extrn	___bb_basic_basic
	extrn	___bb_blitz_blitz
	extrn	___bb_bmploader_bmploader
	extrn	___bb_d3d7max2d_d3d7max2d
	extrn	___bb_directsoundaudio_directsoundaudio
	extrn	___bb_eventqueue_eventqueue
	extrn	___bb_freeaudioaudio_freeaudioaudio
	extrn	___bb_freejoy_freejoy
	extrn	___bb_freeprocess_freeprocess
	extrn	___bb_freetypefont_freetypefont
	extrn	___bb_glew_glew
	extrn	___bb_gnet_gnet
	extrn	___bb_jpgloader_jpgloader
	extrn	___bb_macos_macos
	extrn	___bb_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_openalaudio_openalaudio
	extrn	___bb_pngloader_pngloader
	extrn	___bb_reflection_reflection
	extrn	___bb_retro_retro
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_timer_timer
	extrn	___bb_wavloader_wavloader
	extrn	_bbEnd
	extrn	_bbNullObject
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringFromDouble
	extrn	_brl_glmax2d_GLMax2DDriver
	extrn	_brl_graphics_EndGraphics
	extrn	_brl_graphics_Flip
	extrn	_brl_graphics_Graphics
	extrn	_brl_graphics_SetGraphicsDriver
	extrn	_brl_max2d_Cls
	extrn	_brl_max2d_DrawLine
	extrn	_brl_max2d_DrawOval
	extrn	_brl_max2d_DrawText
	extrn	_brl_max2d_Plot
	extrn	_brl_max2d_SetColor
	extrn	_brl_polledinput_KeyHit
	extrn	_brl_polledinput_MouseX
	extrn	_brl_polledinput_MouseY
	extrn	_brl_random_Rand
	extrn	_brl_system_HideMouse
	extrn	_noddybox_algorithm_CircleIntersects
	extrn	_noddybox_algorithm_DoCircle
	public	__bb_main
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,36
	push	ebx
	push	esi
	push	edi
	cmp	dword [_53],0
	je	_54
	mov	eax,0
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_54:
	mov	dword [_53],1
	call	___bb_blitz_blitz
	call	___bb_algorithm_algorithm
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	call	___bb_bank_bank
	call	___bb_bankstream_bankstream
	call	___bb_basic_basic
	call	___bb_bmploader_bmploader
	call	___bb_d3d7max2d_d3d7max2d
	call	___bb_directsoundaudio_directsoundaudio
	call	___bb_eventqueue_eventqueue
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_gnet_gnet
	call	___bb_jpgloader_jpgloader
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_openalaudio_openalaudio
	call	___bb_pngloader_pngloader
	call	___bb_reflection_reflection
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	call	___bb_timer_timer
	call	___bb_wavloader_wavloader
	call	___bb_freejoy_freejoy
	call	___bb_freeprocess_freeprocess
	call	___bb_glew_glew
	call	___bb_macos_macos
	push	2
	call	_brl_glmax2d_GLMax2DDriver
	push	eax
	call	_brl_graphics_SetGraphicsDriver
	add	esp,8
	push	0
	push	60
	push	32
	push	600
	push	800
	call	_brl_graphics_Graphics
	add	esp,20
	call	_brl_system_HideMouse
	mov	dword [ebp-16],200
	mov	dword [ebp-32],600
	mov	dword [ebp-12],500
	mov	dword [ebp-28],100
	mov	dword [ebp-24],-1
	mov	dword [ebp-20],1
	jmp	_18
_20:
	call	_brl_max2d_Cls
	push	200
	push	100
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	600
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	800
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	call	_noddybox_algorithm_DoCircle
	add	esp,12
	mov	edi,eax
	mov	esi,0
	jmp	_38
_23:
	mov	ecx,360
	mov	eax,esi
	add	eax,1
	cdq
	idiv	ecx
	mov	eax,edx
	mov	ebx,eax
	push	255
	push	100
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	255
	push	100
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	255
	push	100
	call	_brl_random_Rand
	add	esp,8
	push	eax
	call	_brl_max2d_SetColor
	add	esp,12
	push	1
	mov	eax,dword [edi+ebx*4+24]
	mov	eax,dword [eax+12]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [edi+ebx*4+24]
	mov	eax,dword [eax+8]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [edi+esi*4+24]
	mov	eax,dword [eax+12]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [edi+esi*4+24]
	mov	eax,dword [eax+8]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_DrawLine
	add	esp,20
_21:
	add	esi,1
_38:
	cmp	esi,359
	jle	_23
_22:
	push	0
	push	0
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
	push	1
	mov	eax,dword [ebp-28]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebp-32]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebp-12]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebp-16]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_DrawLine
	add	esp,20
	mov	eax,dword [ebp-16]
	cmp	eax,200
	sete	al
	movzx	eax,al
	cmp	eax,0
	jne	_40
	mov	eax,dword [ebp-16]
	cmp	eax,600
	sete	al
	movzx	eax,al
_40:
	cmp	eax,0
	je	_42
	mov	eax,dword [ebp-20]
	neg	eax
	mov	dword [ebp-20],eax
_42:
	mov	eax,dword [ebp-12]
	cmp	eax,100
	sete	al
	movzx	eax,al
	cmp	eax,0
	jne	_43
	mov	eax,dword [ebp-12]
	cmp	eax,500
	sete	al
	movzx	eax,al
_43:
	cmp	eax,0
	je	_45
	mov	eax,dword [ebp-24]
	neg	eax
	mov	dword [ebp-24],eax
_45:
	push	255
	push	0
	push	0
	call	_brl_max2d_SetColor
	add	esp,12
	push	1101004800
	push	1101004800
	call	_brl_polledinput_MouseY
	sub	eax,10
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_polledinput_MouseX
	sub	eax,10
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_DrawOval
	add	esp,16
	push	255
	push	255
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
	fld	qword [_55]
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	call	_brl_polledinput_MouseY
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,8
	fstp	qword [esp]
	call	_brl_polledinput_MouseX
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	mov	eax,dword [ebp-28]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,8
	fstp	qword [esp]
	mov	eax,dword [ebp-32]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	mov	eax,dword [ebp-12]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,8
	fstp	qword [esp]
	mov	eax,dword [ebp-16]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,8
	fstp	qword [esp]
	call	_noddybox_algorithm_CircleIntersects
	add	esp,80
	mov	dword [ebp-4],50
	mov	edi,eax
	mov	eax,edi
	add	eax,24
	mov	ebx,eax
	mov	eax,ebx
	add	eax,dword [edi+16]
	mov	dword [ebp-8],eax
	jmp	_24
_26:
	mov	esi,dword [ebx]
	add	ebx,4
	cmp	esi,_bbNullObject
	je	_24
	mov	eax,dword [ebp-4]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	push	0
	fld	qword [esi+16]
	sub	esp,8
	fstp	qword [esp]
	call	_bbStringFromDouble
	add	esp,8
	push	eax
	push	_27
	fld	qword [esi+8]
	sub	esp,8
	fstp	qword [esp]
	call	_bbStringFromDouble
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_max2d_DrawText
	add	esp,12
	add	dword [ebp-4],10
	fld	qword [esi+16]
	sub	esp,4
	fstp	dword [esp]
	fld	qword [esi+8]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_Plot
	add	esp,8
_24:
	cmp	ebx,dword [ebp-8]
	jne	_26
_25:
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
_18:
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_20
_19:
	call	_brl_graphics_EndGraphics
	call	_bbEnd
	mov	eax,0
	jmp	_28
_28:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_53:
	dd	0
	align	8
_55:
	dd	0x0,0x40240000
	align	4
_27:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	44
