	format	MS COFF
	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_cocoamaxgui_cocoamaxgui
	extrn	___bb_d3d7max2d_d3d7max2d
	extrn	___bb_eventqueue_eventqueue
	extrn	___bb_fltkmaxgui_fltkmaxgui
	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_maxgui_maxgui
	extrn	___bb_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_pngloader_pngloader
	extrn	___bb_retro_retro
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_timer_timer
	extrn	___bb_vector_vector
	extrn	___bb_wavloader_wavloader
	extrn	___bb_win32maxgui_win32maxgui
	extrn	_bbATan2
	extrn	_bbCos
	extrn	_bbSin
	extrn	_bbStringFromDouble
	extrn	_brl_graphics_Flip
	extrn	_brl_graphics_Graphics
	extrn	_brl_max2d_Cls
	extrn	_brl_max2d_DrawLine
	extrn	_brl_max2d_DrawOval
	extrn	_brl_max2d_DrawText
	extrn	_brl_max2d_SetColor
	extrn	_brl_polledinput_KeyHit
	extrn	_brl_polledinput_MouseX
	extrn	_brl_polledinput_MouseY
	extrn	_brl_system_HideMouse
	extrn	_noddybox_vector_TVector
	public	__bb_main
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,60
	cmp	dword [_33],0
	je	_34
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_34:
	mov	dword [_33],1
	call	___bb_blitz_blitz
	call	___bb_vector_vector
	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_cocoamaxgui_cocoamaxgui
	call	___bb_d3d7max2d_d3d7max2d
	call	___bb_eventqueue_eventqueue
	call	___bb_fltkmaxgui_fltkmaxgui
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_gnet_gnet
	call	___bb_jpgloader_jpgloader
	call	___bb_maxgui_maxgui
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_pngloader_pngloader
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	call	___bb_timer_timer
	call	___bb_wavloader_wavloader
	call	___bb_win32maxgui_win32maxgui
	call	___bb_freejoy_freejoy
	call	___bb_freeprocess_freeprocess
	call	___bb_glew_glew
	call	___bb_macos_macos
	push	0
	push	60
	push	0
	push	600
	push	800
	call	_brl_graphics_Graphics
	add	esp,20
	call	_brl_system_HideMouse
	fld	qword [_35]
	fstp	qword [ebp-56]
	fld	qword [_36]
	fstp	qword [ebp-48]
	fldz
	sub	esp,8
	fstp	qword [esp]
	fld1
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	call	dword [_noddybox_vector_TVector+48]
	add	esp,24
	jmp	_19
_21:
	call	_brl_max2d_Cls
	call	_brl_polledinput_MouseX
	mov	dword [ebp+-60],eax
	fild	dword [ebp+-60]
	fstp	qword [ebp-32]
	call	_brl_polledinput_MouseY
	mov	dword [ebp+-60],eax
	fild	dword [ebp+-60]
	fstp	qword [ebp-40]
	push	0
	push	0
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
	push	1092616192
	push	1092616192
	fld	qword [ebp-48]
	fld	qword [_37]
	fsubp	st1,st0
	sub	esp,4
	fstp	dword [esp]
	fld	qword [ebp-56]
	fld	qword [_38]
	fsubp	st1,st0
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_DrawOval
	add	esp,16
	fldz
	sub	esp,8
	fstp	qword [esp]
	fld	qword [ebp-40]
	fsub	qword [ebp-48]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [ebp-32]
	fsub	qword [ebp-56]
	sub	esp,8
	fstp	qword [esp]
	call	dword [_noddybox_vector_TVector+48]
	add	esp,24
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+64]
	add	esp,4
	fld	qword [ebp-40]
	fsub	qword [ebp-48]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [ebp-56]
	fsub	qword [ebp-32]
	sub	esp,8
	fstp	qword [esp]
	call	_bbATan2
	add	esp,16
	fstp	qword [ebp-24]
	fldz
	fld	qword [ebp-24]
	fucompp
	fnstsw	ax
	sahf
	setae	al
	movzx	eax,al
	cmp	eax,0
	jne	_32
	fld	qword [_39]
	fld	qword [ebp-24]
	faddp	st1,st0
	fstp	qword [ebp-24]
_32:
	push	0
	push	0
	fld	qword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbStringFromDouble
	add	esp,8
	push	eax
	call	_brl_max2d_DrawText
	add	esp,12
	push	255
	push	0
	push	0
	call	_brl_max2d_SetColor
	add	esp,12
	push	1092616192
	push	1092616192
	fld	qword [ebp-40]
	fld	qword [_40]
	fsubp	st1,st0
	sub	esp,4
	fstp	dword [esp]
	fld	qword [ebp-32]
	fld	qword [_41]
	fsubp	st1,st0
	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
	push	1
	fld	qword [ebp-40]
	fstp	qword [ebp-8]
	fld	qword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbCos
	add	esp,8
	fld	qword [_42]
	fmulp	st1,st0
	fld	qword [ebp-8]
	fsubrp	st1,st0
	fstp	qword [ebp-8]
	fld	qword [ebp-8]
	sub	esp,4
	fstp	dword [esp]
	fld	qword [ebp-32]
	fstp	qword [ebp-16]
	fld	qword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbSin
	add	esp,8
	fld	qword [_43]
	fmulp	st1,st0
	fld	qword [ebp-16]
	faddp	st1,st0
	fstp	qword [ebp-16]
	fld	qword [ebp-16]
	sub	esp,4
	fstp	dword [esp]
	fld	qword [ebp-40]
	sub	esp,4
	fstp	dword [esp]
	fld	qword [ebp-32]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_DrawLine
	add	esp,20
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
_19:
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_21
_20:
	mov	eax,0
_22:
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_33:
	dd	0
	align	8
_35:
	dd	0x0,0x4062c000
	align	8
_36:
	dd	0x0,0x40690000
	align	8
_37:
	dd	0x0,0x40140000
	align	8
_38:
	dd	0x0,0x40140000
	align	8
_39:
	dd	0x0,0x40768000
	align	8
_40:
	dd	0x0,0x40140000
	align	8
_41:
	dd	0x0,0x40140000
	align	8
_42:
	dd	0x0,0x40340000
	align	8
_43:
	dd	0x0,0x40340000
