	format	MS COFF
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_bitmapfont_bitmapfont
	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	_bbArrayNew1D
	extrn	_bbFloatToInt
	extrn	_bbGCFree
	extrn	_bbIncbinAdd
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectDtor
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringSlice
	extrn	_brl_blitz_RuntimeError
	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_Plot
	extrn	_brl_max2d_SetBlend
	extrn	_brl_max2d_SetTransform
	extrn	_brl_polledinput_KeyDown
	extrn	_brl_polledinput_KeyHit
	extrn	_brl_random_Rand
	extrn	_noddybox_bitmapfont_TBitmapFont
	public	__bb_Star_Create
	public	__bb_Star_Delete
	public	__bb_Star_New
	public	__bb_Star_Update
	public	__bb_main
	public	_bb_Star
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,36
	push	ebx
	push	esi
	push	edi
	cmp	dword [_105],0
	je	_106
	mov	eax,0
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_106:
	mov	dword [_105],1
	mov	eax,_67
	sub	eax,_66
	push	eax
	push	_66
	push	_65
	call	_bbIncbinAdd
	add	esp,12
	call	___bb_blitz_blitz
	call	___bb_bitmapfont_bitmapfont
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	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	_bb_Star
	call	_bbObjectRegisterType
	add	esp,4
	push	2
	call	_brl_glmax2d_GLMax2DDriver
	push	eax
	call	_brl_graphics_SetGraphicsDriver
	add	esp,8
	push	0
	push	60
	push	32
	push	480
	push	640
	call	_brl_graphics_Graphics
	add	esp,20
	push	0
	push	_18
	call	dword [_noddybox_bitmapfont_TBitmapFont+48]
	add	esp,8
	mov	dword [ebp-28],eax
	cmp	dword [ebp-28],_bbNullObject
	jne	_69
	push	_19
	call	_brl_blitz_RuntimeError
	add	esp,4
_69:
	mov	dword [ebp-4],255
	mov	dword [ebp-32],-5
	push	10000
	push	_72
	call	_bbArrayNew1D
	add	esp,8
	mov	edi,eax
	mov	esi,0
	jmp	_75
_22:
	call	dword [_bb_Star+48]
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [edi+esi*4+24]
	dec	dword [eax+4]
	jnz	_79
	push	eax
	call	_bbGCFree
	add	esp,4
_79:
	mov	dword [edi+esi*4+24],ebx
_20:
	add	esi,1
_75:
	cmp	esi,10000
	jl	_22
_21:
	push	3
	call	_brl_max2d_SetBlend
	add	esp,4
	jmp	_23
_25:
	call	_brl_max2d_Cls
	mov	esi,0
	jmp	_80
_28:
	mov	eax,dword [edi+esi*4+24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
_26:
	add	esi,1
_80:
	cmp	esi,10000
	jl	_28
_27:
	push	1073741824
	push	1073741824
	push	0
	call	_brl_max2d_SetTransform
	add	esp,12
	mov	ecx,dword [ebp-28]
	push	dword [ebp-4]
	mov	eax,dword [ebp-4]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	mov	eax,dword [ebp-4]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	push	10
	push	0
	push	_29
	push	ecx
	mov	eax,dword [ecx]
	call	dword [eax+52]
	add	esp,28
	mov	edx,dword [ebp-28]
	push	255
	push	255
	push	255
	push	30
	mov	eax,dword [ebp-4]
	sub	eax,120
	push	eax
	push	_30
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+52]
	add	esp,28
	mov	ecx,dword [ebp-28]
	push	dword [ebp-4]
	mov	eax,dword [ebp-4]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	mov	eax,dword [ebp-4]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	push	50
	push	_31
	push	ecx
	mov	eax,dword [ecx]
	call	dword [eax+56]
	add	esp,24
	mov	eax,dword [ebp-28]
	push	255
	push	255
	push	255
	push	70
	push	_32
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	push	80
	call	_brl_polledinput_KeyDown
	add	esp,4
	cmp	eax,0
	jne	_86
	mov	eax,dword [ebp-32]
	add	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	cmp	eax,100
	sete	al
	movzx	eax,al
	cmp	eax,0
	jne	_87
	mov	eax,dword [ebp-4]
	cmp	eax,255
	sete	al
	movzx	eax,al
_87:
	cmp	eax,0
	je	_89
	mov	eax,dword [ebp-32]
	neg	eax
	mov	dword [ebp-32],eax
_89:
_86:
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
_23:
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_25
_24:
	mov	dword [ebp-24],10
	mov	dword [ebp-12],_33
	fld	dword [_112]
	fstp	dword [ebp-8]
	fld	dword [_113]
	fstp	dword [ebp-16]
	fld	dword [_114]
	fstp	dword [ebp-20]
	jmp	_34
_36:
	call	_brl_max2d_Cls
	mov	esi,0
	jmp	_95
_39:
	mov	eax,dword [edi+esi*4+24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
_37:
	add	esi,1
_95:
	cmp	esi,10000
	jl	_39
_38:
	push	1065353216
	push	1065353216
	push	0
	call	_brl_max2d_SetTransform
	add	esp,12
	mov	eax,dword [ebp-24]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebp-24]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	sub	esp,4
	fstp	dword [esp]
	push	dword [ebp-16]
	call	_brl_max2d_SetTransform
	add	esp,12
	fld	dword [ebp-16]
	fadd	dword [ebp-20]
	fstp	dword [ebp-16]
	fld	dword [_115]
	fld	dword [ebp-16]
	fucompp
	fnstsw	ax
	sahf
	setbe	al
	movzx	eax,al
	cmp	eax,0
	jne	_97
	fld	dword [_116]
	fld	dword [ebp-16]
	fucompp
	fnstsw	ax
	sahf
	setae	al
	movzx	eax,al
_97:
	cmp	eax,0
	je	_99
	fld	dword [ebp-20]
	fchs
	fstp	dword [ebp-20]
_99:
	mov	ebx,dword [ebp-28]
	push	255
	push	255
	push	255
	push	0
	fld	dword [ebp-8]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	dword [ebp-12]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,28
	push	80
	call	_brl_polledinput_KeyDown
	add	esp,4
	cmp	eax,0
	jne	_101
	fld	dword [ebp-8]
	fsub	dword [_117]
	fstp	dword [ebp-8]
	mov	ebx,dword [ebp-28]
	push	1
	push	0
	push	dword [ebp-12]
	call	_bbStringSlice
	add	esp,12
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	neg	eax
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	fld	dword [ebp-8]
	fucompp
	fnstsw	ax
	sahf
	setae	al
	movzx	eax,al
	cmp	eax,0
	jne	_103
	mov	ebx,dword [ebp-28]
	push	1
	push	0
	push	dword [ebp-12]
	call	_bbStringSlice
	add	esp,12
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	fld	dword [ebp-8]
	faddp	st1,st0
	fstp	dword [ebp-8]
	push	1
	push	0
	push	dword [ebp-12]
	call	_bbStringSlice
	add	esp,12
	push	eax
	mov	eax,dword [ebp-12]
	push	dword [eax+8]
	push	1
	push	dword [ebp-12]
	call	_bbStringSlice
	add	esp,12
	push	eax
	call	_bbStringConcat
	add	esp,8
	mov	dword [ebp-12],eax
_103:
_101:
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
_34:
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_36
_35:
	call	_brl_graphics_EndGraphics
	mov	eax,0
	jmp	_52
_52:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_Star_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_bb_Star
	mov	dword [ebx+8],0
	mov	dword [ebx+12],0
	mov	dword [ebx+16],0
	mov	eax,0
	jmp	_55
_55:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_Star_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_58:
	mov	dword [eax],_bbObjectClass
	push	eax
	call	_bbObjectDtor
	add	esp,4
	mov	eax,0
	jmp	_107
_107:
	mov	esp,ebp
	pop	ebp
	ret
__bb_Star_Create:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	_bb_Star
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	push	640
	push	0
	call	_brl_random_Rand
	add	esp,8
	mov	dword [ebx+8],eax
	push	480
	push	0
	call	_brl_random_Rand
	add	esp,8
	mov	dword [ebx+12],eax
	push	3
	push	1
	call	_brl_random_Rand
	add	esp,8
	mov	dword [ebx+16],eax
	mov	eax,ebx
	jmp	_60
_60:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_Star_Update:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	ebx,dword [ebp+8]
	mov	eax,dword [ebx+12]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebx+8]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_Plot
	add	esp,8
	mov	eax,dword [ebx+16]
	add	dword [ebx+12],eax
	mov	ecx,480
	mov	eax,dword [ebx+12]
	cdq
	idiv	ecx
	mov	dword [ebx+12],edx
	mov	eax,0
	jmp	_63
_63:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_105:
	dd	0
	align	4
_66:
	file	"E:/Src/BlitzMAX/BlitzMAXMods/imagefont/bmaxtest.bmf"
_67:
	align	4
_65:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	98,109,97,120,116,101,115,116,46,98,109,102
_41:
	db	"Star",0
_42:
	db	"x",0
_43:
	db	"i",0
_44:
	db	"y",0
_45:
	db	"sp",0
_46:
	db	"New",0
_47:
	db	"()i",0
_48:
	db	"Delete",0
_49:
	db	"Create",0
_50:
	db	"():Star",0
_51:
	db	"Update",0
	align	4
_40:
	dd	2
	dd	_41
	dd	3
	dd	_42
	dd	_43
	dd	8
	dd	3
	dd	_44
	dd	_43
	dd	12
	dd	3
	dd	_45
	dd	_43
	dd	16
	dd	6
	dd	_46
	dd	_47
	dd	16
	dd	6
	dd	_48
	dd	_47
	dd	20
	dd	7
	dd	_49
	dd	_50
	dd	48
	dd	6
	dd	_51
	dd	_47
	dd	52
	dd	0
	align	4
_bb_Star:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_40
	dd	20
	dd	__bb_Star_New
	dd	__bb_Star_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_Star_Create
	dd	__bb_Star_Update
	align	4
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	105,110,99,98,105,110,58,58,98,109,97,120,116,101,115,116
	dw	46,98,109,102
	align	4
_19:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	70,97,105,108,101,100,32,116,111,32,111,112,101,110,32,102
	dw	111,110,116
_72:
	db	":Star",0
	align	4
_29:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	68,82,65,87,67,79,76,79,85,82,69,68
	align	4
_30:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	68,82,65,87
	align	4
_31:
	dd	_bbStringClass
	dd	2147483647
	dd	14
	dw	67,69,78,84,82,69,67,79,76,79,85,82,69,68
	align	4
_32:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	67,69,78,84,82,69
	align	4
_33:
	dd	_bbStringClass
	dd	2147483647
	dd	58
	dw	84,72,73,83,32,73,83,32,83,79,77,69,32,86,69,82
	dw	89,44,32,86,69,82,89,44,32,42,86,69,82,89,42,32
	dw	126,76,65,82,71,69,32,83,67,82,79,76,76,73,78,71
	dw	32,84,69,88,84,46,46,46,46,46
	align	4
_112:
	dd	0x0
	align	4
_113:
	dd	0x0
	align	4
_114:
	dd	0x3e4ccccd
	align	4
_115:
	dd	0xc1200000
	align	4
_116:
	dd	0x41200000
	align	4
_117:
	dd	0x40a00000
